]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: mtd: check if a block has to be skipped or erased
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 30 Oct 2022 14:14:13 +0000 (15:14 +0100)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 10 Dec 2022 13:35:55 +0000 (14:35 +0100)
commitd09807ad144cb2fe3745a58caadf9a4192038839
treece51bc2828dea3aa0b5a461b7a5b142bc39abf9e
parentc21b0ca525bd818428a62dd267697071822cc9a9
cmd: mtd: check if a block has to be skipped or erased

As reported by patch [1], the `mtd erase' command should not erase bad
blocks.
To force bad block erasing you have to use the `mtd erase.dontskipbad'
command.

This patch tries to fix the same issue without modifying code taken
from the linux kernel, in order to make further upgrades easier.

[1] https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevetskiy@iopsys.eu/
Suggested-by: Michael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Tested-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
cmd/mtd.c