]> git.sur5r.net Git - u-boot/commit
dfu, nand, ubi: fix erasing after write finish
authorHeiko Schocher <hs@denx.de>
Tue, 7 Jun 2016 06:55:44 +0000 (08:55 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 9 Jun 2016 17:53:13 +0000 (13:53 -0400)
commit9ae63f46a387573236372b937ada34daa55b893d
tree24f4e30a579e3562d2ea71d328f8b36baeeaeaa8
parent02b11f11993bc99c0ace4e750ba03f347502ebe9
dfu, nand, ubi: fix erasing after write finish

writting to ubi nand partitions need after write ends an erase
of the remaining sectors. This fail, if dfu write size was not
a multiple of erasesize, example log:

Failure erase: -1

Fix this error.

Signed-off-by: Heiko Schocher <hs@denx.de>
drivers/dfu/dfu_nand.c