Skip to content

Commit

Permalink
spi: rspi: Don't consider DMA configuration failures fatal
Browse files Browse the repository at this point in the history
Fall back to PIO if DMA configuration failed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Mark Brown committed Jun 2, 2014
1 parent 6837b8e commit 27e105a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/spi/spi-rspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 27e105a

Please sign in to comment.