All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add error checking to spi-nor read and write
@ 2015-07-28  9:11 Michal Suchanek
  2015-07-28  9:23 ` [PATCH 1/2] mtd: spi-nor: rework spi nor " Michal Suchanek
  2015-07-28  9:23 ` [PATCH 2/2] mtd: spi-nor: rework write loop Michal Suchanek
  0 siblings, 2 replies; 6+ messages in thread
From: Michal Suchanek @ 2015-07-28  9:11 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, Han Xu, Rafał Miłecki,
	Michal Suchanek, Alison Chaiken, Huang Shijie, Ben Hutchings,
	Marek Vasut, Gabor Juhos,
	Bean Huo 霍斌斌 (beanhuo), linux-mtd,
	linux-kernel


Hello,

I am working with half-broken SPI drivers which sometimes fail and spi-nor
completely ignores that leading to silent data corruption.

With these patches I get actual I/O errors when something fails.

Testing on different hardware would be appreciated, especially fsl-qspi.

I don't recall any comment on these patches so I am resending them separately.

Thanks

Michal

Michal Suchanek (2):
  mtd: spi-nor: rework spi nor read and write.
  mtd: spi-nor: rework write loop

 drivers/mtd/devices/m25p80.c      | 33 ++++++++++------
 drivers/mtd/spi-nor/fsl-quadspi.c | 29 +++++++-------
 drivers/mtd/spi-nor/spi-nor.c     | 79 +++++++++++++++++++++------------------
 include/linux/mtd/spi-nor.h       |  8 ++--
 4 files changed, 83 insertions(+), 66 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2015-07-29 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28  9:11 [PATCH 0/2] Add error checking to spi-nor read and write Michal Suchanek
2015-07-28  9:23 ` [PATCH 1/2] mtd: spi-nor: rework spi nor " Michal Suchanek
2015-07-28 18:15   ` Marek Vasut
2015-07-29  4:16     ` Michal Suchanek
2015-07-29 17:03       ` Marek Vasut
2015-07-28  9:23 ` [PATCH 2/2] mtd: spi-nor: rework write loop 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.