[PATCH] spi: spi-qpic-snand: fix NAND_READ_LOCATION_2 register handling
Md Sadre Alam
quic_mdalam at quicinc.com
Tue Apr 29 03:20:31 PDT 2025
On 4/28/2025 1:00 PM, Gabor Juhos wrote:
> The precomputed value for the NAND_READ_LOCATION_2 register should be
> stored in 'snandc->regs->read_location2'.
>
> Fix the qcom_spi_set_read_loc_first() function accordingly.
>
> Fixes: 7304d1909080 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface")
> Signed-off-by: Gabor Juhos <j4g8y7 at gmail.com>
> ---
> drivers/spi/spi-qpic-snand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/spi-qpic-snand.c b/drivers/spi/spi-qpic-snand.c
> index ae32c452d0bcf852b69b76e595f3588ea7e1a670..94948c8781e83f30650e5fbac56897daf5eb3c2c 100644
> --- a/drivers/spi/spi-qpic-snand.c
> +++ b/drivers/spi/spi-qpic-snand.c
> @@ -142,7 +142,7 @@ static void qcom_spi_set_read_loc_first(struct qcom_nand_controller *snandc,
> else if (reg == NAND_READ_LOCATION_1)
> snandc->regs->read_location1 = locreg_val;
> else if (reg == NAND_READ_LOCATION_2)
> - snandc->regs->read_location1 = locreg_val;
> + snandc->regs->read_location2 = locreg_val;
> else if (reg == NAND_READ_LOCATION_3)
> snandc->regs->read_location3 = locreg_val;
> }
>
> ---
> base-commit: 15cfe55ec58ace931a73e19e5367598734ceb074
> change-id: 20250428-qpic-snand-readloc2-fix-bccd07cf26d3
Reviewed-by: Md Sadre Alam <quic_mdalam at quicinc.com>
>
> Best regards,
More information about the linux-mtd
mailing list