提交 27e105a6 编写于 作者: G Geert Uytterhoeven 提交者: Mark Brown

spi: rspi: Don't consider DMA configuration failures fatal

Fall back to PIO if DMA configuration failed.
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 6837b8e9
......@@ -1190,10 +1190,8 @@ static int rspi_probe(struct platform_device *pdev)
}
ret = rspi_request_dma(rspi, pdev);
if (ret < 0) {
dev_err(&pdev->dev, "rspi_request_dma failed.\n");
goto error3;
}
if (ret < 0)
dev_warn(&pdev->dev, "DMA not available, using PIO\n");
ret = devm_spi_register_master(&pdev->dev, master);
if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册