All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Minor fix and new Chip IDs for spi-nor.
@ 2015-04-30 21:42 Michal Suchanek
  2015-04-30 13:33 ` [PATCH 1/3] MTD: m25p80: fix write return value Michal Suchanek
                   ` (2 more replies)
  0 siblings, 3 replies; 40+ messages in thread
From: Michal Suchanek @ 2015-04-30 21:42 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, zajec5, Marek Vasut,
	Alison Chaiken, Michal Suchanek, Ben Hutchings,
	Geert Uytterhoeven, Bean Huo (beanhuo), grmoore@altera.com,
	linux-mtd, linux-kernel

Hello,

I tried attaching random flash chips with an ICP cable and found that Linux does not have the chip IDs.

Thanks

Michal

Michal Suchanek (3):
  MTD: m25p80: fix write return value.
  MTD: spi-nor: Add Pm25LD020 and GD25Q41B chip ID.
  MTD: spi-nor: add flag to not use sector erase.

 drivers/mtd/devices/m25p80.c  | 2 +-
 drivers/mtd/spi-nor/spi-nor.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 40+ messages in thread
* [PATCH 0/3] Using SPI NOR flah on sunxi.
@ 2015-04-30 14:22 Michal Suchanek
  2015-04-30 13:33   ` Michal Suchanek
  0 siblings, 1 reply; 40+ 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] 40+ messages in thread

end of thread, other threads:[~2015-05-21  8:35 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30 21:42 [PATCH 0/3] Minor fix and new Chip IDs for spi-nor Michal Suchanek
2015-04-30 13:33 ` [PATCH 1/3] MTD: m25p80: fix write return value Michal Suchanek
2015-04-30 23:09   ` Marek Vasut
2015-04-30 23:09     ` Marek Vasut
2015-05-20 23:45   ` Brian Norris
2015-05-20 23:45     ` Brian Norris
2015-05-21  8:33     ` Michal Suchanek
2015-05-21  8:33       ` Michal Suchanek
2015-04-30 19:02 ` [PATCH 2/3] MTD: spi-nor: Add Pm25LD020 and GD25Q41B chip ID Michal Suchanek
2015-04-30 21:13 ` [PATCH 3/3] MTD: spi-nor: add flag to not use sector erase Michal Suchanek
2015-04-30 23:13   ` Marek Vasut
2015-04-30 23:13     ` Marek Vasut
2015-05-01  7:05     ` Michal Suchanek
2015-05-01  7:05       ` Michal Suchanek
2015-05-01 10:50       ` Jonas Gorski
2015-05-01 10:50         ` Jonas Gorski
2015-05-01 14:20       ` Marek Vasut
2015-05-01 14:20         ` Marek Vasut
2015-05-04 11:11         ` Michal Suchanek
2015-05-04 11:11           ` Michal Suchanek
2015-05-04 12:12           ` Marek Vasut
2015-05-04 12:12             ` Marek Vasut
2015-05-04 13:18             ` Michal Suchanek
2015-05-04 13:18               ` Michal Suchanek
2015-05-04 13:35               ` Marek Vasut
2015-05-04 13:35                 ` Marek Vasut
2015-05-04 13:39                 ` Michal Suchanek
2015-05-04 13:39                   ` Michal Suchanek
2015-05-04 14:11                   ` Marek Vasut
2015-05-04 14:11                     ` Marek Vasut
2015-05-01 21:56   ` Rafał Miłecki
2015-05-01 21:56     ` Rafał Miłecki
  -- strict thread matches above, loose matches on Subject: below --
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 13:33   ` Michal Suchanek
2015-04-30 18:43   ` Marek Vasut
2015-04-30 18:43     ` Marek Vasut
2015-04-30 18:43     ` Marek Vasut
2015-04-30 21:37     ` Michal Suchanek
2015-04-30 21:37       ` Michal Suchanek
2015-04-30 21:37       ` Michal Suchanek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.