Re: [PATCH] spi: spi-qpic-snand: publish the ECC context to snandc->qspi

From: Miquel Raynal

Date: Fri Sep 04 2026 - 14:49:17 EST


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