commit | 97cd4d896f275f3e25ec9ed7ca6d16998aa0c431 | [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 | 95f4238b119cc117b568a9bd3feafc5e3d81fa85 [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>