]> git.dujemihanovic.xyz Git - u-boot.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)
commit37a7c374a6bd6cefe24516e5aef13d2bab6f133e
tree551b78cdac9abd753dbbe2aa943b9e32bd5c73c4
parenta222c14792f15582648d1a00cdc40355ca9393ef
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