Skip to content

Commit cf1ba3c

Browse files
Dan Carpenterbroonie
authored andcommitted
spi: spi-qpic-snand: Fix ECC_CFG_ECC_DISABLE shift in qcom_spi_read_last_cw()
The ECC_CFG_ECC_DISABLE define is BIT(0). It's supposed to be used directly instead of used as a shifter. Fixes: 7304d19 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/2f4b0a0b-2c03-41c0-8a4a-3d789a83832d@stanley.mountain Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 632556d commit cf1ba3c

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
@@ -514,7 +514,7 @@ static int qcom_spi_read_last_cw(struct qcom_nand_controller *snandc,
514514
cfg0 = (ecc_cfg->cfg0_raw & ~(7U << CW_PER_PAGE)) |
515515
0 << CW_PER_PAGE;
516516
cfg1 = ecc_cfg->cfg1_raw;
517-
ecc_bch_cfg = 1 << ECC_CFG_ECC_DISABLE;
517+
ecc_bch_cfg = ECC_CFG_ECC_DISABLE;
518518

519519
snandc->regs->cmd = snandc->qspi->cmd;
520520
snandc->regs->cfg0 = cpu_to_le32(cfg0);

0 commit comments

Comments
 (0)