Dario Binacchi d09807ad14 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>
2022-12-10 14:35:55 +01:00
..
2022-09-19 16:07:12 -04:00
2022-10-20 15:22:15 +08:00
2022-09-25 08:30:05 -06:00
2022-10-30 20:07:17 +01:00
2022-09-24 11:34:38 -04:00
2022-04-25 10:00:04 -04:00
2022-09-29 16:07:57 -04:00
2022-10-17 21:17:12 -06:00
2022-09-29 16:07:57 -04:00
2022-10-11 15:40:48 -04:00
2022-08-04 16:18:47 -04:00
2022-08-04 16:18:47 -04:00
2022-09-29 16:07:57 -04:00
2022-08-26 16:32:59 -06:00
2022-09-24 11:34:38 -04:00
2022-08-04 16:18:47 -04:00
2022-09-29 16:07:57 -04:00
2022-05-06 14:39:15 -04:00
2022-09-16 11:05:16 -04:00
2022-08-04 16:18:47 -04:00
2022-12-05 12:47:16 -05:00
2022-09-25 08:30:05 -06:00
2022-06-22 21:29:47 -04:00
2022-09-25 08:30:05 -06:00
2022-12-05 12:47:16 -05:00
2022-10-06 22:54:57 +02:00
2022-09-16 11:05:16 -04:00
2022-05-05 15:06:02 -04:00
2022-09-02 13:40:42 -04:00
2022-09-16 11:05:16 -04:00
2022-09-16 11:05:16 -04:00
2022-09-16 11:05:16 -04:00
2022-12-05 17:43:21 +01:00
2022-09-29 16:07:57 -04:00
2022-10-11 15:40:48 -04:00
2022-09-16 11:05:16 -04:00
2022-10-31 11:04:00 -04:00
2022-09-29 16:07:57 -04:00
2022-10-11 15:40:48 -04:00