commit | 37a7c374a6bd6cefe24516e5aef13d2bab6f133e | [log] [tgz] |
---|---|---|
author | Michael Trimarchi <michael@amarulasolutions.com> | Sun May 15 11:35:32 2022 +0200 |
committer | Stefano Babic <sbabic@denx.de> | Fri May 20 12:36:48 2022 +0200 |
tree | 551b78cdac9abd753dbbe2aa943b9e32bd5c73c4 | |
parent | a222c14792f15582648d1a00cdc40355ca9393ef [diff] |
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>