Skip to content

Commit 9d7054f

Browse files
superna9999broonie
authored andcommitted
spi: spi-geni-qcom: correctly handle -EPROBE_DEFER from dma_request_chan()
Now spi_geni_grab_gpi_chan() errors are correctly reported, the -EPROBE_DEFER error should be returned from probe in case the GPI dma driver is built as module and/or not probed yet. Fixes: b59c122 ("spi: spi-geni-qcom: Add support for GPI dma") Fixes: 6532582 ("spi: spi-geni-qcom: fix error handling in spi_geni_grab_gpi_chan()") Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230615-topic-sm8550-upstream-fix-spi-geni-qcom-probe-v2-1-670c3d9e8c9c@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent eee4369 commit 9d7054f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spi-geni-qcom.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,8 @@ static int spi_geni_init(struct spi_geni_master *mas)
646646
geni_se_select_mode(se, GENI_GPI_DMA);
647647
dev_dbg(mas->dev, "Using GPI DMA mode for SPI\n");
648648
break;
649+
} else if (ret == -EPROBE_DEFER) {
650+
goto out_pm;
649651
}
650652
/*
651653
* in case of failure to get gpi dma channel, we can still do the

0 commit comments

Comments
 (0)