linux/drivers/mtd/spi-nor
Michal Suchanek e5d05cbd6d mtd: spi-nor: simplify write loop
The spi-nor write loop assumes that what is passed to the hardware
driver write() is what gets written.

When write() writes less than page size at once data is dropped on the
floor. Check the amount of data writen and exit if it does not match
requested amount.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Michal Suchanek <hramrach@gmail.com>
Tested-by: Michal Suchanek <hramrach@gmail.com>
2016-06-01 17:22:57 -07:00
..
fsl-quadspi.c mtd: spi-nor: stop passing around retlen 2016-06-01 17:22:52 -07:00
Kconfig mtd: spi-nor: fsl-quadspi: add support for layerscape 2016-03-07 11:46:44 -08:00
Makefile mtd: mtk-nor: new Mediatek serial flash controller driver 2015-11-20 17:35:16 -08:00
mtk-quadspi.c mtd: spi-nor: stop passing around retlen 2016-06-01 17:22:52 -07:00
nxp-spifi.c mtd: spi-nor: stop passing around retlen 2016-06-01 17:22:52 -07:00
spi-nor.c mtd: spi-nor: simplify write loop 2016-06-01 17:22:57 -07:00