u-boot/arch/arm/mach-imx
Michael Trimarchi 37a7c374a6 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>
2022-05-20 12:36:48 +02:00
..
imx8 caam: Fix crash in case caam_jr_probe failed 2022-05-20 12:36:47 +02:00
imx8m caam: Fix crash in case caam_jr_probe failed 2022-05-20 12:36:47 +02:00
imx8ulp imx8ulp: clock: Fix lcd clock algo 2022-04-21 12:44:23 +02:00
imxrt Convert CONFIG_CONS_INDEX et al to Kconfig 2021-12-27 08:41:38 -05:00
mx3 arm: Remove mx31pdk board 2020-07-09 20:58:06 +05:30
mx5 usb: Enforce DM_USB migration for USB_HOST devices. 2021-07-18 21:05:31 -04:00
mx6 caam: Fix crash in case caam_jr_probe failed 2022-05-20 12:36:47 +02:00
mx7 caam: Fix crash in case caam_jr_probe failed 2022-05-20 12:36:47 +02:00
mx7ulp caam: Fix crash in case caam_jr_probe failed 2022-05-20 12:36:47 +02:00
mxs arm: Remove bg0900 board 2021-10-01 21:08:19 -04:00
cache.c imx: Enable ACTLR.SMP in SPL for i.MX6/7 2022-02-05 13:38:39 +01:00
cmd_bmode.c ARM: imx: Add support for reading out the primary/secondary bmode 2020-08-17 17:55:17 +02:00
cmd_dek.c crypto/fsl: i.MX8: Enable Job ring driver model. 2022-04-12 11:19:21 +02:00
cmd_hdmidet.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
cmd_mfgprot.c imx: Fix build error 2022-04-21 15:18:25 +02:00
cmd_nandbcb.c arm: mach-imx: cmd_nandbcb fix bad block handling 2022-05-20 12:36:48 +02:00
cpu.c imx: imx8mp: Add iMX8MP UltraLite Part cpu type 2022-04-12 19:10:43 +02:00
ddrmc-vf610-calibration.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ddrmc-vf610-calibration.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ddrmc-vf610.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
hab.c image: Drop IMAGE_ENABLE_FIT 2021-10-08 15:53:26 -04:00
i2c-mxv7.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
image-container.c mmc: Rename MMC_SUPPORT to MMC 2021-09-04 11:42:41 -04:00
imx_bootaux.c imx: bootaux: get stack from elf file 2022-05-20 09:30:28 +02:00
init.c ARM: imx: Add support for switching primary/secondary boot mode to bmode 2020-08-17 17:54:01 +02:00
iomux-v3.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig imx: Update FSL_MFGPROT config for iMX8M 2022-04-21 15:18:25 +02:00
lowlevel.S imx: add lowlevel init for ARM64 2019-04-25 19:16:24 +02:00
mac.c arm: mach-imx: Update MAC fuse for i.MX8MP 2021-10-21 13:59:26 +02:00
Makefile imx: Update FSL_MFGPROT config for iMX8M 2022-04-21 15:18:25 +02:00
misc.c lmb: Remove imx board_lmb_reserve() 2021-09-23 14:15:32 -04:00
mmc_env.c Revert "imx: mmc_env: update runtime SD/MMC boot env device" 2019-10-08 16:36:37 +02:00
mmdc_size.c arm/mach-imx: Fix macros in mmdc_size.c 2021-07-10 16:53:34 +02:00
parse-container.c arm: imx: parse-container: add some missing end of line 2022-04-12 17:33:55 +02:00
priblob.c imx: cmd: use struct cmd_tbl 2021-08-09 14:46:51 +02:00
rdc-sema.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sata.c arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
speed.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl.c spl: mmc: extend spl_mmc_boot_mode() to take mmc argument 2022-04-04 23:24:17 +01:00
spl_imx_romapi.c ARM: imx: romapi: Repair FlexSPI NOR boot offset 2022-04-12 21:08:23 +02:00
spl_qspi.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
spl_sd.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
syscounter.c Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig 2021-08-31 17:47:49 -04:00
timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
video.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00