a2cd636fee499c7677ce370aa0826360d08060ef
[openwrt/staging/xback.git] /
1 From: Gabor Juhos <j4g8y7@gmail.com>
2 Date: Mon, 28 Apr 2025 09:30:55 +0200
3 Subject: [PATCH] spi: spi-qpic-snand: fix NAND_READ_LOCATION_2 register
4 handling
5
6 The precomputed value for the NAND_READ_LOCATION_2 register should be
7 stored in 'snandc->regs->read_location2'.
8
9 Fix the qcom_spi_set_read_loc_first() function accordingly.
10
11 Fixes: 7304d1909080 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface")
12 Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
13 Reviewed-by: Md Sadre Alam <quic_mdalam@quicinc.com>
14 ---
15 drivers/spi/spi-qpic-snand.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18
19 ---
20 base-commit: 15cfe55ec58ace931a73e19e5367598734ceb074
21 change-id: 20250428-qpic-snand-readloc2-fix-bccd07cf26d3
22
23 Best regards,
24
25 --- a/drivers/spi/spi-qpic-snand.c
26 +++ b/drivers/spi/spi-qpic-snand.c
27 @@ -142,7 +142,7 @@ static void qcom_spi_set_read_loc_first(
28 else if (reg == NAND_READ_LOCATION_1)
29 snandc->regs->read_location1 = locreg_val;
30 else if (reg == NAND_READ_LOCATION_2)
31 - snandc->regs->read_location1 = locreg_val;
32 + snandc->regs->read_location2 = locreg_val;
33 else if (reg == NAND_READ_LOCATION_3)
34 snandc->regs->read_location3 = locreg_val;
35 }