From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dec59.ruk.cuni.cz ([2001:718:1e03:4::11]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZK16Z-00023u-Ia for linux-mtd@lists.infradead.org; Tue, 28 Jul 2015 09:23:25 +0000 Message-Id: From: Michal Suchanek Date: Tue, 28 Jul 2015 11:11:22 +0200 Subject: [PATCH 0/2] Add error checking to spi-nor read and write 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@lists.infradead.org, linux-kernel@vger.kernel.org, List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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