kernel-fxtec-pro1x/drivers/mtd
Yogesh Gaur f9a2a8b8a5 mtd: devices: m25p80: Make sure WRITE_EN is issued before each write
[ Upstream commit 3baa8ec88c2feb902328e59a4dcf0f0aaab7d2ff ]

Some SPI controllers can't write nor->page_size bytes in a single step
because their TX FIFO is too small, but when that happens we should
make sure a WRITE_EN command before each write access and READ_SR command
after each write access is issued.

The core is already taking care of that, so all we have to do here is
return the actual number of bytes that were written during the
spi_mem_exec_op() operation.

Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-24 08:20:41 +01:00
..
chips
devices mtd: devices: m25p80: Make sure WRITE_EN is issued before each write 2019-11-24 08:20:41 +01:00
lpddr
maps mtd: physmap_of: Release resources on error 2019-11-24 08:20:17 +01:00
nand mtd: rawnand: sh_flctl: Use proper enum for flctl_dma_fifo0_transfer 2019-11-24 08:19:55 +01:00
parsers
spi-nor mtd: spi-nor: cadence-quadspi: Use proper enum for dma_[un]map_single 2019-11-24 08:20:41 +01:00
tests
ubi
afs.c
ar7part.c
bcm47xxpart.c
bcm63xxpart.c
cmdlinepart.c
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c