mtd: spi-nor: spansion: use CLPEF as an alternative to CLSR
[ Upstream commit d534fd97 ] Infineon S28Hx (SEMPER Octal) and S25FS256T (SEMPER Nano) support Clear Program and Erase Failure Flags (CLPEF, 82h) instead of CLSR(30h). Introduce a new mfr_flag together with the infrastructure to allow manufacturer private data in the core. With this we remove the need to have if checks in the code at runtime and instead set the correct opcodes at probe time. S25Hx (SEMPER QSPI) supports CLSR but it may be disabled by CFR3x[2] while CLPEF is always available. Therefore, the mfr_flag is also applied to S25Hx for safety. Signed-off-by:Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Link: https://lore.kernel.org/r/20230726075257.12985-2-tudor.ambarus@linaro.org Signed-off-by:
Tudor Ambarus <tudor.ambarus@linaro.org> Stable-dep-of: 1e611e10 ("mtd: spi-nor: spansion: preserve CFR2V[7] when writing MEMLAT") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment