]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i3c: master: svc: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Jul 2025 07:54:16 +0000 (10:54 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 30 Jul 2025 23:37:56 +0000 (01:37 +0200)
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250704075416.3218647-1-sakari.ailus@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c

index b2b5db3ed5bb8753b2f6cdd30fe892307e1d4602..701ae165b25b7991360f3a862b34cc1870a9a2ba 100644 (file)
@@ -665,7 +665,6 @@ static int svc_i3c_master_set_speed(struct i3c_master_controller *m,
        }
 
 rpm_out:
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 
        return ret;
@@ -780,7 +779,6 @@ static int svc_i3c_master_bus_init(struct i3c_master_controller *m)
                goto rpm_out;
 
 rpm_out:
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 
        return ret;
@@ -802,7 +800,6 @@ static void svc_i3c_master_bus_cleanup(struct i3c_master_controller *m)
        /* Disable master */
        writel(0, master->regs + SVC_I3C_MCONFIG);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 }
 
@@ -1208,7 +1205,6 @@ static int svc_i3c_master_do_daa(struct i3c_master_controller *m)
                dev_err(master->dev, "Cannot handle such a list of devices");
 
 rpm_out:
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 
        return ret;
@@ -1517,7 +1513,6 @@ static void svc_i3c_master_enqueue_xfer(struct svc_i3c_master *master,
        }
        spin_unlock_irqrestore(&master->xferqueue.lock, flags);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 }
 
@@ -1807,7 +1802,6 @@ static int svc_i3c_master_disable_ibi(struct i3c_dev_desc *dev)
 
        ret = i3c_master_disec_locked(m, dev->info.dyn_addr, I3C_CCC_EVENT_SIR);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 
        return ret;
@@ -1840,7 +1834,6 @@ static int svc_i3c_master_disable_hotjoin(struct i3c_master_controller *m)
        if (!master->enabled_events)
                svc_i3c_master_disable_interrupts(master);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
 
        return 0;
@@ -1960,7 +1953,6 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
        if (ret)
                goto rpm_disable;
 
-       pm_runtime_mark_last_busy(&pdev->dev);
        pm_runtime_put_autosuspend(&pdev->dev);
 
        return 0;