]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i3c: dw: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Jul 2025 07:54:17 +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>
Link: https://lore.kernel.org/r/20250704075417.3218742-1-sakari.ailus@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c

index e61be28cd1e36396e01cc9f5ac2cd7b1282cdea2..974122b2d20ee59132b467dc93b50812f82f2ef5 100644 (file)
@@ -682,7 +682,6 @@ static int dw_i3c_master_bus_init(struct i3c_master_controller *m)
        dw_i3c_master_enable(master);
 
 rpm_out:
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return ret;
 }
@@ -812,7 +811,6 @@ static int dw_i3c_master_send_ccc_cmd(struct i3c_master_controller *m,
        else
                ret = dw_i3c_ccc_set(master, ccc);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return ret;
 }
@@ -895,7 +893,6 @@ static int dw_i3c_master_daa(struct i3c_master_controller *m)
        dw_i3c_master_free_xfer(xfer);
 
 rpm_out:
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return ret;
 }
@@ -981,7 +978,6 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
        ret = xfer->ret;
        dw_i3c_master_free_xfer(xfer);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return ret;
 }
@@ -1131,7 +1127,6 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
        ret = xfer->ret;
        dw_i3c_master_free_xfer(xfer);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return ret;
 }
@@ -1299,7 +1294,6 @@ static int dw_i3c_master_disable_hotjoin(struct i3c_master_controller *m)
        writel(readl(master->regs + DEVICE_CTRL) | DEV_CTRL_HOT_JOIN_NACK,
               master->regs + DEVICE_CTRL);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return 0;
 }
@@ -1325,7 +1319,6 @@ static int dw_i3c_master_enable_ibi(struct i3c_dev_desc *dev)
 
        if (rc) {
                dw_i3c_master_set_sir_enabled(master, dev, data->index, false);
-               pm_runtime_mark_last_busy(master->dev);
                pm_runtime_put_autosuspend(master->dev);
        }
 
@@ -1345,7 +1338,6 @@ static int dw_i3c_master_disable_ibi(struct i3c_dev_desc *dev)
 
        dw_i3c_master_set_sir_enabled(master, dev, data->index, false);
 
-       pm_runtime_mark_last_busy(master->dev);
        pm_runtime_put_autosuspend(master->dev);
        return 0;
 }