[PATCH V4 3/5] arm: mach-imx: cmd_nandbcb fix bad block handling

2022-05-20 Thread sbabic
> The badblock should be skipped properly in reading and writing. > Fix the logic. The bcb struct is written, skipping the bad block, > so we need to read using the same logic. This was tested create > bad block in the area and then flash it and read it back. > Acked-by: Han Xu > Tested-By: Tim

[PATCH V4 3/5] arm: mach-imx: cmd_nandbcb fix bad block handling

2022-05-15 Thread Michael Trimarchi
The badblock should be skipped properly in reading and writing. Fix the logic. The bcb struct is written, skipping the bad block, so we need to read using the same logic. This was tested create bad block in the area and then flash it and read it back. Acked-by: Han Xu Tested-By: Tim Harvey