mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-14 10:19:08 +08:00
spi: spi-qpic-snand: fix NAND_READ_LOCATION_2 register handling
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: 7304d19090 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface")
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Link: https://patch.msgid.link/20250428-qpic-snand-readloc2-fix-v1-1-50ce0877ff72@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user