Skip to content

mtd: spi-nor: fix Quad SPI memory support

Cyrille Pitchen linux-arm-kernel linux-devicetree linux-mtd linux-spi lkml 1 version Applied

Status from this message: Applied this patch to l2-mtd.git. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4mtd: spi-nor: remove unused read_xfer/write_xfer hooksinclude/linux/mtd/spi-nor.h+0 -352 replies
2/4mtd: spi-nor: properly detect the memory when it boots in Quad or Dual modedrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+69 -60 replies
3/4mtd: spi-nor: fix Quad SPI mode support for Spansion, Micron and Macronixdrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+675 -990 replies
4/4mtd: m25p80: add support of dual and quad spi protocols to all commandsdrivers/mtd/devices/m25p80.c+212 -420 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMarek Vasut
1/4R-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH linux-next 0/4] mtd: spi-nor: fix Quad SPI memory support

Hi all,

this series of patches fixes the QSPI support mostly for Micron and Macronix memories. There are also some updates for Spansion memories. There are also many comments to explain the implementation choices based on the datasheets from memory manufacturers.

The series was backported to a at91-4.1 kernel then tested on a sama5d2 xplained board, which embeds a at25df321a memory on a SPI controller and a Micron n25q128a13 QSPI memory on the new Atmel QSPI controller.

The at25 memory was used to check non regression on the m25p80 driver whereas the Micron memory was used to test the fixes of the spi-nor framework. The driver for the Atmel QSPI controller will be sent in a dedicated series.

Best Regards,

Cyrille

Cyrille Pitchen (4):
mtd: spi-nor: remove unused read_xfer/write_xfer hooks
mtd: spi-nor: properly detect the memory when it boots in Quad or Dual
mode
mtd: spi-nor: fix Quad SPI mode support for Spansion, Micron and
Macronix
mtd: m25p80: add support of dual and quad spi protocols to all
commands

 drivers/mtd/devices/m25p80.c  | 254 ++++++++++---
 drivers/mtd/spi-nor/spi-nor.c | 811 ++++++++++++++++++++++++++++++++++++------
 include/linux/mtd/spi-nor.h   |  69 ++--
 3 files changed, 954 insertions(+), 180 deletions(-)
Signature · 1 line
1.8.2.2