]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: mtd: fix the trace when limit is reached
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 5 Jun 2023 07:52:07 +0000 (09:52 +0200)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Fri, 13 Oct 2023 08:49:07 +0000 (10:49 +0200)
commit4b1c067ea78f01fb5b79fa4e6589f750b330c592
tree957c33b9f8da9240820d63bbcca9c0892f4f5fce
parent1174a2ffa06f87eab5368b7b17119c8a157ac8f0
dfu: mtd: fix the trace when limit is reached

The offset variable = 'off' used in the error trace when limit is reach
on erase operation is incorect as 'erase_op.addr' is used in the loop.
This patch corrects the copy paste issue between the erase loop and
the write loop.

This patch also adds the 'remaining' information to allow to debug of
limit issues.

Fixes: 6015af28ee6d ("dfu: add backend for MTD device")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/dfu/dfu_mtd.c