Commit d4f3a651 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'spi/for-5.9' into spi-linus

parents 549738f1 45f0bbda
...@@ -16725,6 +16725,13 @@ S: Maintained ...@@ -16725,6 +16725,13 @@ S: Maintained
F: Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml F: Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
F: drivers/gpio/gpio-dwapb.c F: drivers/gpio/gpio-dwapb.c
SYNOPSYS DESIGNWARE APB SSI DRIVER
M: Serge Semin <fancer.lancer@gmail.com>
L: linux-spi@vger.kernel.org
S: Supported
F: Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml
F: drivers/spi/spi-dw*
SYNOPSYS DESIGNWARE AXI DMAC DRIVER SYNOPSYS DESIGNWARE AXI DMAC DRIVER
M: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> M: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
S: Maintained S: Maintained
......
...@@ -1281,6 +1281,9 @@ static int dspi_probe(struct platform_device *pdev) ...@@ -1281,6 +1281,9 @@ static int dspi_probe(struct platform_device *pdev)
if (!ctlr) if (!ctlr)
return -ENOMEM; return -ENOMEM;
spi_controller_set_devdata(ctlr, dspi);
platform_set_drvdata(pdev, dspi);
dspi->pdev = pdev; dspi->pdev = pdev;
dspi->ctlr = ctlr; dspi->ctlr = ctlr;
...@@ -1417,8 +1420,6 @@ static int dspi_probe(struct platform_device *pdev) ...@@ -1417,8 +1420,6 @@ static int dspi_probe(struct platform_device *pdev)
if (dspi->devtype_data->trans_mode != DSPI_DMA_MODE) if (dspi->devtype_data->trans_mode != DSPI_DMA_MODE)
ctlr->ptp_sts_supported = true; ctlr->ptp_sts_supported = true;
platform_set_drvdata(pdev, dspi);
ret = spi_register_controller(ctlr); ret = spi_register_controller(ctlr);
if (ret != 0) { if (ret != 0) {
dev_err(&pdev->dev, "Problem registering DSPI ctlr\n"); dev_err(&pdev->dev, "Problem registering DSPI ctlr\n");
......
...@@ -1707,7 +1707,7 @@ static int spi_imx_probe(struct platform_device *pdev) ...@@ -1707,7 +1707,7 @@ static int spi_imx_probe(struct platform_device *pdev)
ret = spi_bitbang_start(&spi_imx->bitbang); ret = spi_bitbang_start(&spi_imx->bitbang);
if (ret) { if (ret) {
dev_err(&pdev->dev, "bitbang start failed with %d\n", ret); dev_err(&pdev->dev, "bitbang start failed with %d\n", ret);
goto out_runtime_pm_put; goto out_bitbang_start;
} }
dev_info(&pdev->dev, "probed\n"); dev_info(&pdev->dev, "probed\n");
...@@ -1717,6 +1717,9 @@ static int spi_imx_probe(struct platform_device *pdev) ...@@ -1717,6 +1717,9 @@ static int spi_imx_probe(struct platform_device *pdev)
return ret; return ret;
out_bitbang_start:
if (spi_imx->devtype_data->has_dmamode)
spi_imx_sdma_exit(spi_imx);
out_runtime_pm_put: out_runtime_pm_put:
pm_runtime_dont_use_autosuspend(spi_imx->dev); pm_runtime_dont_use_autosuspend(spi_imx->dev);
pm_runtime_put_sync(spi_imx->dev); pm_runtime_put_sync(spi_imx->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment