Browse Source

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

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>
Geert Uytterhoeven 11 năm trước cách đây
mục cha
commit
27e105a600
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      drivers/spi/spi-rspi.c

+ 2 - 4
drivers/spi/spi-rspi.c

@@ -1190,10 +1190,8 @@ static int rspi_probe(struct platform_device *pdev)
 	}
 	}
 
 
 	ret = rspi_request_dma(rspi, 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);
 	ret = devm_spi_register_master(&pdev->dev, master);
 	if (ret < 0) {
 	if (ret < 0) {