[PATCH v6 14/21] mtd: spinand: Introduce a way to avoid raw access
Frieder Schrempf
frieder.schrempf at kontron.de
Tue Aug 19 09:14:36 CEST 2025
Am 18.08.25 um 12:06 schrieb Mikhail Kshevetskiy:
> From: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
>
> SkyHigh spinand device has ECC enable bit in configuration register but
> it must be always enabled. If ECC is disabled, read and write ops
> results in undetermined state. For such devices, a way to avoid raw
> access is needed.
>
> Introduce SPINAND_NO_RAW_ACCESS flag to advertise the device does not
> support raw access. In such devices, the on-die ECC engine ops returns
> error to I/O request in raw mode.
>
> Checking and marking BBM need to be cared as special case, by adding
> fallback mechanism that tries read/write OOB with ECC enabled.
>
> This is a port of linux commit
> 6d9d6ab3a82a (mtd: spinand: Introduce a way to avoid raw access)
>
> Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu> # U-Boot port
Reviewed-by: Frieder Schrempf <frieder.schrempf at kontron.de>
More information about the U-Boot
mailing list