mtd: spi-nor: add read loop
authorMichal Suchanek <hramrach@gmail.com>
Fri, 6 May 2016 00:31:55 +0000 (17:31 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 2 Jun 2016 00:23:02 +0000 (17:23 -0700)
commit26f9bcad29a6c240881bd4efc90f16a9990dd6c2
tree957d294b0b1c4ec2e56f686a8e99837fe7d20216
parente5d05cbd6d8b01f08c95c427a36c66aac769af4f
mtd: spi-nor: add read loop

mtdblock and ubi do not handle the situation when read returns less data
than requested. Loop in spi-nor until buffer is filled or an error is
returned.

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>
drivers/mtd/spi-nor/spi-nor.c