[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221020164508.29182-1-mauro.lima@eclypsium.com>
Date: Thu, 20 Oct 2022 13:45:06 -0300
From: Mauro Lima <mauro.lima@...ypsium.com>
To: broonie@...nel.org
Cc: mika.westerberg@...ux.intel.com, linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org, Mauro Lima <mauro.lima@...ypsium.com>
Subject: [PATCH 0/2] intel-spi: Split hardware and software sequencing
Right now the only driver for Intel's spi has a DANGEROUS tag for
a bug in the past on certain Lenovo platforms. It was cleared out
that the bug was caused for the spi software sequencing mechanism
and if we only use the driver with the hardware sequencing
capabilities will be much safer[1].
This changes will remove all the software sequencing bits from
the driver and left only the hardware sequencing functionality.
If the software sequencing capabilities are needed, the old driver
can be build using the DANGEROUS option from the menu.
[1] https://lkml.org/lkml/2021/11/11/468
Mauro Lima (2):
spi: intel-spi: Move software sequencing logic outside the core
spi: intel-spi: build the driver with hardware sequencing by default
drivers/spi/Kconfig | 15 +-
drivers/spi/Makefile | 2 +-
drivers/spi/spi-intel-common.h | 171 +++++++++++++++++
drivers/spi/spi-intel-swseq.c | 231 +++++++++++++++++++++++
drivers/spi/spi-intel-swseq.h | 23 +++
drivers/spi/spi-intel.c | 326 +++------------------------------
6 files changed, 464 insertions(+), 304 deletions(-)
create mode 100644 drivers/spi/spi-intel-common.h
create mode 100644 drivers/spi/spi-intel-swseq.c
create mode 100644 drivers/spi/spi-intel-swseq.h
--
2.34.3
Powered by blists - more mailing lists