[PATCH v1] mtd: nand: raw: rockchip_nfc: fix oobfree length calculation

Quentin Schulz quentin.schulz at cherry.de
Thu Jul 9 19:48:17 CEST 2026


Hi Johan,

On 6/30/26 3:32 PM, Johan Jonker wrote:
> The oobfree[0].length calculation depends on the

Not only that, but also ecc->layout->eccpos[i] just above.

> rknand->metadata_size value, but this is calculated
> after the function rk_nfc_ecc_init is called. Move this
> calculation to a location before it's value is required.
> 
> Fixes: 1b3fcb3c0456 ("mtd: nand: raw: rockchip_nfc: add layout structure")

Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>

Thanks!
Quentin


More information about the U-Boot mailing list