Skip to content

Using SPI NOR flah on sunxi.

Michal Suchanek linux-devicetree linux-mtd linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3MTD: m25p80: fix write return value.drivers/mtd/devices/m25p80.c+1 -12 replies
2/3MTD: spi-nor: check for short writes in spi_nor_write.drivers/mtd/spi-nor/spi-nor.c+17 -256 replies
3/3MTD: m25p80: Add option to limit SPI transfer size.Documentation/devicetree/bindings/mtd/m25p80.txt drivers/mtd/devices/m25p80.c+22 -22 replies

Reviews trailers per patch

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

PatchMarek Vasut
1/3A-b
2/3
3/3

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 0/3] Using SPI NOR flah on sunxi.

Hello,

I tried to connect a SPI NOR flash to my sunxi board and due to the current sunxi SPI driver limitations it does not work.

The SPI driver returns an error when more than 64 bytes are transferred at once due to lack of DMA support.

I tried to hack in an option to limit the transfer size and discovered that the return value of write in m25p80 driver is wrong and never checked.

This might be useful while working with other devices with limited driver support.

Thanks

Michal

Michal Suchanek (3):
MTD: m25p80: fix write return value.
MTD: spi-nor: check for short writes in spi_nor_write.
MTD: m25p80: Add option to limit SPI transfer size.

 Documentation/devicetree/bindings/mtd/m25p80.txt |  5 +++
 drivers/mtd/devices/m25p80.c                     | 21 ++++++++++--
 drivers/mtd/spi-nor/spi-nor.c                    | 42 ++++++++++--------------
 3 files changed, 40 insertions(+), 28 deletions(-)
Signature · 1 line
2.1.4