]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mach-imx: cmd_nandbcb fix bad block handling
authorMichael Trimarchi <michael@amarulasolutions.com>
Sun, 15 May 2022 09:35:32 +0000 (11:35 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 10:36:48 +0000 (12:36 +0200)
commit467ec709984c098d220c1b361287558df3c895b0
tree551b78cdac9abd753dbbe2aa943b9e32bd5c73c4
parent14cb678c8bc979a42f44be58929f56eef7e23ffc
arm: mach-imx: cmd_nandbcb fix bad block handling

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 <han.xu@nxp.com>
Tested-By: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
arch/arm/mach-imx/cmd_nandbcb.c