aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichal Suchanek <hramrach@gmail.com>2016-05-05 20:31:54 -0400
committerBrian Norris <computersforpeace@gmail.com>2016-06-01 20:22:57 -0400
commite5d05cbd6d8b01f08c95c427a36c66aac769af4f (patch)
tree1f7a9f10bbbf61fc2c6d64adddc0a12072e31bae /tools
parent2dd087b16946cf168f401526adf26afa771bb740 (diff)
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions