summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJohan Jonker <[email protected]>2026-07-23 17:22:59 +0200
committerQuentin Schulz <[email protected]>2026-07-23 17:43:33 +0200
commitd97d3df79e7bd7021dac0a1974c314c5acb07ac3 (patch)
tree305b171cd0f7e122bd1ed3e711f15b3ef82a780f /doc
parent15387d5a90af01eb52f0c18cd83e358ba19c0a7d (diff)
mtd: nand: raw: rockchip_nfc: fix ecc setup
A Rockchip NAND Flash Controller (NFC) supports multiple flash devices. The SoC boot ROM only checks for NAND chip 0 and with reduced ECC strength. Currently only the read page functions have this condition check added in the U-Boot driver. In single- and multi-chip nodes with rockchip,boot-blks and rockchip,boot-ecc-strength set, the chips that aren't chip 0 will thus have an ECC mismatch when writing and reading. Fix by adding the same condition to all read and write page functions by dropping the existing 'selected_bank == 0' check and use the NAND_IS_BOOT_MEDIUM option that was introduced to U-Boot more recently than this driver to behave identically to the Linux driver. NAND_IS_BOOT_MEDIUM is automatically set when nand-is-boot-medium property is set in the Device Tree, which is a requirement for rockchip,boot-blks and rockchip,boot-ecc-strength and will thus apply to all chips in single- and multi-chips nodes, regardless of the CS. Fixes: b12dc5d6fa76 ("mtd: nand: NFC drivers for RK3308, RK2928 and others") Signed-off-by: Johan Jonker <[email protected]> Tested-by: Hüseyin BIYIK <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions