linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Using SPI NOR flah on sunxi.
@ 2015-04-30 14:22 Michal Suchanek
  2015-04-30 13:33 ` [PATCH 1/3] MTD: m25p80: fix write return value Michal Suchanek
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Michal Suchanek @ 2015-04-30 14:22 UTC (permalink / raw)
  To: linux-sunxi, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, David Woodhouse, Brian Norris, Marek Vasut,
	Huang Shijie, Michal Suchanek, Rafał Miłecki,
	Ben Hutchings, Alison Chaiken, Mika Westerberg,
	Bean Huo 霍斌斌 (beanhuo), grmoore@altera.com,
	devicetree, linux-kernel, linux-mtd

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(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-05-22  9:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30 14:22 [PATCH 0/3] Using SPI NOR flah on sunxi Michal Suchanek
2015-04-30 13:33 ` [PATCH 1/3] MTD: m25p80: fix write return value Michal Suchanek
2015-04-30 18:43   ` Marek Vasut
2015-04-30 21:37     ` Michal Suchanek
2015-04-30 13:38 ` [PATCH 2/3] MTD: spi-nor: check for short writes in spi_nor_write Michal Suchanek
2015-05-20 23:38   ` Brian Norris
2015-05-21  8:39     ` Michal Suchanek
2015-05-21 10:28       ` Mark Brown
2015-05-22  7:17         ` Brian Norris
2015-05-22  7:25           ` Brian Norris
2015-05-22  9:37             ` Mark Brown
2015-04-30 13:46 ` [PATCH 3/3] MTD: m25p80: Add option to limit SPI transfer size Michal Suchanek
2015-04-30 14:58   ` [linux-sunxi] " Julian Calaby
2015-05-20 23:27     ` Brian Norris
2015-04-30 16:30 ` [PATCH 0/3] Using SPI NOR flah on sunxi Thomas.Betker
2015-04-30 16:56   ` Michal Suchanek
2015-04-30 18:34     ` Marek Vasut
2015-05-20 23:54       ` Brian Norris
     [not found] ` <jwv4mnwfppf.fsf-monnier+gmane.comp.hardware.netbook.arm.sunxi@gnu.org>
2015-05-04 10:32   ` [linux-sunxi] " Michal Suchanek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).