]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: pm: Drop unneeded call to pm_runtime_mark_last_busy()
authorNuno Sá <nuno.sa@analog.com>
Tue, 11 Nov 2025 17:50:17 +0000 (17:50 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 13 Nov 2025 01:56:38 +0000 (20:56 -0500)
There's no need to explicitly call pm_runtime_mark_last_busy() since
pm_runtime_autosuspend() is now doing it since commit 08071e64cb64 ("PM:
runtime: Mark last busy stamp in pm_runtime_autosuspend()")

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20251111-scsi-pm-improv-v2-1-626b8491f4b4@analog.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_pm.c

index d581613d87c7dfff1b7c1ac6800a88ff16c1fa70..2652fecbfe476771f18d98bb578dee36a3045212 100644 (file)
@@ -205,7 +205,6 @@ static int scsi_runtime_idle(struct device *dev)
        /* Insert hooks here for targets, hosts, and transport classes */
 
        if (scsi_is_sdev_device(dev)) {
-               pm_runtime_mark_last_busy(dev);
                pm_runtime_autosuspend(dev);
                return -EBUSY;
        }