Skip to content

Commit 722a6ad

Browse files
juhosgbroonie
authored andcommitted
spi: spi-qpic-snand: propagate errors from qcom_spi_block_erase()
The qcom_spi_block_erase() function returns with error in case of failure. Change the qcom_spi_send_cmdaddr() function to propagate these errors to the callers instead of returning with success. Fixes: 7304d19 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface") Signed-off-by: Gabor Juhos <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Md Sadre Alam <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 460b14b commit 722a6ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/spi/spi-qpic-snand.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,8 +1307,7 @@ static int qcom_spi_send_cmdaddr(struct qcom_nand_controller *snandc,
13071307
snandc->qspi->addr1 = cpu_to_le32(s_op.addr1_reg << 16);
13081308
snandc->qspi->addr2 = cpu_to_le32(s_op.addr2_reg);
13091309
snandc->qspi->cmd = cpu_to_le32(cmd);
1310-
qcom_spi_block_erase(snandc);
1311-
return 0;
1310+
return qcom_spi_block_erase(snandc);
13121311
default:
13131312
break;
13141313
}

0 commit comments

Comments
 (0)