[PATCH] spi: spi-qpic-snand: publish the ECC context to snandc->qspi
Miquel Raynal
miquel.raynal at bootlin.com
Fri Sep 4 10:38:14 PDT 2026
On Mon, 24 Aug 2026 20:38:48 -0500, Johan Alvarado wrote:
> qcom_spi_ooblayout_ecc() and qcom_spi_ooblayout_free() read the ECC
> configuration through snandc->qspi->ecc. qcom_spi_probe() points it at a
> zeroed scratch struct and only qcom_spi_ecc_prepare_io_req_pipelined(),
> which runs on page I/O, ever updates it. qcom_spi_ecc_init_ctx_pipelined()
> installs the ooblayout but does not publish the context it just
> allocated, and qcom_spi_ecc_cleanup_ctx_pipelined() frees that context
> without clearing the pointer.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] spi: spi-qpic-snand: publish the ECC context to snandc->qspi
commit: 93bc7c4d2f4198586a6dbd7797c3bbf1ca845761
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-mtd
mailing list