Skip to content

spi-nor: intel-spi: Various fixes and enhancements

Bin Meng linux-mtd lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 4 repliesIn review
  2. v110 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Add stable kernel tags in the commit message (patch [03/10])
- Fix typo of 'operatoin' (patch [10/10])
- Add Mika Westerberg's 'Acked-by' tag

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10spi-nor: intel-spi: Fix number of protected range registers for BYT/LPTdrivers/mtd/spi-nor/intel-spi.c+11 -50 replies
2/10spi-nor: intel-spi: Remove useless 'buf' parameter in the HW/SW cycledrivers/mtd/spi-nor/intel-spi.c+6 -80 replies
3/10spi-nor: intel-spi: Fix broken software sequencing codesdrivers/mtd/spi-nor/intel-spi.c+2 -20 replies
4/10spi-nor: intel-spi: Check transfer length in the HW/SW cycledrivers/mtd/spi-nor/intel-spi.c+10 -20 replies
5/10spi-nor: intel-spi: Use SW sequencer for BYT/LPTdrivers/mtd/spi-nor/intel-spi.c+15 -150 replies
6/10spi-nor: intel-spi: Remove 'Atomic Cycle Sequence' in intel_spi_write()drivers/mtd/spi-nor/intel-spi.c+0 -50 replies
7/10spi-nor: intel-spi: Don't assume OPMENU0/1 to be programmed by BIOSdrivers/mtd/spi-nor/intel-spi.c+65 -260 replies
8/10spi-nor: intel-spi: Remove the unnecessary HSFSTS register RWdrivers/mtd/spi-nor/intel-spi.c+2 -30 replies
9/10spi-nor: intel-spi: Rename swseq to swseq_reg in 'struct intel_spi'drivers/mtd/spi-nor/intel-spi.c+8 -80 replies
10/10spi-nor: intel-spi: Fall back to use SW sequencer to erasedrivers/mtd/spi-nor/intel-spi.c+49 -10 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchMika Westerberg
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/10] spi-nor: intel-spi: Various fixes and enhancements

This series does several bug fixes and clean ups against the intel-spi spi-nor driver, as well as enhancements to make the driver independent on the underlying BIOS/bootloader.

At present the driver uses the HW sequencer for the read/write/erase on all supported platforms, read_reg/write_reg for BXT, and the SW sequencer for read_reg/write_reg for BYT/LPT. The way the driver uses the HW and SW sequencer relies on some programmed register settings and hence creates unneeded dependencies with the underlying BIOS/bootloader. For example, the driver unfortunately does not work as expected when booting from Intel Baytrail FSP based bootloaders like U-Boot, as the Baytrail FSP does not set up some SPI controller settings to make the driver happy. Now such limitation has been removed with this series.

Changes in v2:
- Add stable kernel tags in the commit message (patch [03/10])
- Fix typo of 'operatoin' (patch [10/10])
- Add Mika Westerberg's 'Acked-by' tag

Bin Meng (10):
spi-nor: intel-spi: Fix number of protected range registers for
BYT/LPT
spi-nor: intel-spi: Remove useless 'buf' parameter in the HW/SW cycle
spi-nor: intel-spi: Fix broken software sequencing codes
spi-nor: intel-spi: Check transfer length in the HW/SW cycle
spi-nor: intel-spi: Use SW sequencer for BYT/LPT
spi-nor: intel-spi: Remove 'Atomic Cycle Sequence' in
intel_spi_write()
spi-nor: intel-spi: Don't assume OPMENU0/1 to be programmed by BIOS
spi-nor: intel-spi: Remove the unnecessary HSFSTS register RW
spi-nor: intel-spi: Rename swseq to swseq_reg in 'struct intel_spi'
spi-nor: intel-spi: Fall back to use SW sequencer to erase

 drivers/mtd/spi-nor/intel-spi.c | 209 +++++++++++++++++++++++++++++-----------
 1 file changed, 151 insertions(+), 58 deletions(-)
Signature · 1 line
2.9.2