[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20251203181921.97171-1-akifejaz40@gmail.com>
Date: Wed, 3 Dec 2025 23:19:21 +0500
From: Akif Ejaz <akifejaz40@...il.com>
To: broonie@...nel.org
Cc: linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org,
alitariq45892@...il.com,
Akif Ejaz <akifejaz40@...il.com>
Subject: [PATCH] spi: cadence-qspi: Remove redundant pm_runtime_mark_last_busy call
The pm_runtime_mark_last_busy() call is redundant in probe function
as pm_runtime_put_autosuspend() already calls pm_runtime_mark_last_busy()
internally to update the last access time of the device before queuing
autosuspend.
Remove the pm_runtime_mark_last_busy() call from the probe function.
Tested on StarFive VisionFive 2 v1.2A board.
Fixes: e1f2e77624db ("spi: cadence-qspi: Fix runtime PM imbalance in probe")
Signed-off-by: Akif Ejaz <akifejaz40@...il.com>
---
drivers/spi/spi-cadence-quadspi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index 638edca3805a..bf0677949ba8 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -2011,10 +2011,8 @@ static int cqspi_probe(struct platform_device *pdev)
goto probe_setup_failed;
}
- if (!(ddata && (ddata->quirks & CQSPI_DISABLE_RUNTIME_PM))) {
- pm_runtime_mark_last_busy(dev);
+ if (!(ddata && (ddata->quirks & CQSPI_DISABLE_RUNTIME_PM)))
pm_runtime_put_autosuspend(dev);
- }
return 0;
probe_setup_failed:
--
2.34.1
Powered by blists - more mailing lists