summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-imx.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-10-28 22:36:51 +0100
committerMark Brown <broonie@kernel.org>2020-10-28 22:36:51 +0100
commit3bfd5f422f07a10f485c3f046431783c7c4004f2 (patch)
tree7e990a251c825482216a0355177ef80874b3c0cb /drivers/spi/spi-imx.c
parentspi: imx: fix runtime pm support for !CONFIG_PM (diff)
parentLinux 5.10-rc1 (diff)
downloadlinux-3bfd5f422f07a10f485c3f046431783c7c4004f2.tar.xz
linux-3bfd5f422f07a10f485c3f046431783c7c4004f2.zip
Merge tag 'v5.10-rc1' into spi-5.10
Linux 5.10-rc1
Diffstat (limited to 'drivers/spi/spi-imx.c')
-rw-r--r--drivers/spi/spi-imx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index 95be1b20af32..4b80e27ecdbf 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -1712,7 +1712,7 @@ static int spi_imx_probe(struct platform_device *pdev)
ret = spi_bitbang_start(&spi_imx->bitbang);
if (ret) {
dev_err(&pdev->dev, "bitbang start failed with %d\n", ret);
- goto out_runtime_pm_put;
+ goto out_bitbang_start;
}
pm_runtime_mark_last_busy(spi_imx->dev);
@@ -1720,6 +1720,9 @@ static int spi_imx_probe(struct platform_device *pdev)
return ret;
+out_bitbang_start:
+ if (spi_imx->devtype_data->has_dmamode)
+ spi_imx_sdma_exit(spi_imx);
out_runtime_pm_put:
pm_runtime_dont_use_autosuspend(spi_imx->dev);
pm_runtime_set_suspended(&pdev->dev);