Skip to content

Commit 4221a2b

Browse files
committed
spi: Merge up old fix
This fix was originally queued at the end of the 6.4 cycle but as it was minor it never actually got sent.
2 parents 5f66db0 + 1527b07 commit 4221a2b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

drivers/spi/spi-zynqmp-gqspi.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,9 +1340,9 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)
13401340
return 0;
13411341

13421342
clk_dis_all:
1343-
pm_runtime_put_sync(&pdev->dev);
1344-
pm_runtime_set_suspended(&pdev->dev);
13451343
pm_runtime_disable(&pdev->dev);
1344+
pm_runtime_put_noidle(&pdev->dev);
1345+
pm_runtime_set_suspended(&pdev->dev);
13461346
clk_disable_unprepare(xqspi->refclk);
13471347
clk_dis_pclk:
13481348
clk_disable_unprepare(xqspi->pclk);
@@ -1366,11 +1366,15 @@ static void zynqmp_qspi_remove(struct platform_device *pdev)
13661366
{
13671367
struct zynqmp_qspi *xqspi = platform_get_drvdata(pdev);
13681368

1369+
pm_runtime_get_sync(&pdev->dev);
1370+
13691371
zynqmp_gqspi_write(xqspi, GQSPI_EN_OFST, 0x0);
1372+
1373+
pm_runtime_disable(&pdev->dev);
1374+
pm_runtime_put_noidle(&pdev->dev);
1375+
pm_runtime_set_suspended(&pdev->dev);
13701376
clk_disable_unprepare(xqspi->refclk);
13711377
clk_disable_unprepare(xqspi->pclk);
1372-
pm_runtime_set_suspended(&pdev->dev);
1373-
pm_runtime_disable(&pdev->dev);
13741378
}
13751379

13761380
MODULE_DEVICE_TABLE(of, zynqmp_qspi_of_match);

0 commit comments

Comments
 (0)