Re: [PATCH v2] cmd: mtd: check if a block has to be skipped or erased

2022-10-30 Thread Dario Binacchi
Hi Simon, On Wed, Oct 26, 2022 at 1:35 AM Simon Glass wrote: > > Hi, > > On Mon, 24 Oct 2022 at 03:35, Dario Binacchi > wrote: > > > > From: Mikhail Kshevetskiy > > > > As reported by patch [1], the `mtd erase' command should not erase bad > > blocks. > > To force bad block erasing you have to

Re: [PATCH v2] cmd: mtd: check if a block has to be skipped or erased

2022-10-25 Thread Simon Glass
Hi, On Mon, 24 Oct 2022 at 03:35, Dario Binacchi wrote: > > From: Mikhail Kshevetskiy > > 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 issu

Re: [PATCH v2] cmd: mtd: check if a block has to be skipped or erased

2022-10-24 Thread Mikhail Kshevetskiy
What patch will be finally applied? I am preparing a patch that will fix Dario Binacchi issues with non-BBT bad block. >From my point of view this patch have wrong lines in 'Changes in v2' - Do not continue to erase if scrub option is enabled and a bad block was found but return from the functi

[PATCH v2] cmd: mtd: check if a block has to be skipped or erased

2022-10-24 Thread Dario Binacchi
From: Mikhail Kshevetskiy 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 fur