Skip to content

Commit 36fd627

Browse files
juhosgbroonie
authored andcommitted
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: 7304d19 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface") Signed-off-by: Gabor Juhos <[email protected]> Reviewed-by: Md Sadre Alam <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 15cfe55 commit 36fd627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-qpic-snand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void qcom_spi_set_read_loc_first(struct qcom_nand_controller *snandc,
142142
else if (reg == NAND_READ_LOCATION_1)
143143
snandc->regs->read_location1 = locreg_val;
144144
else if (reg == NAND_READ_LOCATION_2)
145-
snandc->regs->read_location1 = locreg_val;
145+
snandc->regs->read_location2 = locreg_val;
146146
else if (reg == NAND_READ_LOCATION_3)
147147
snandc->regs->read_location3 = locreg_val;
148148
}

0 commit comments

Comments
 (0)