Skip to content

Commit 5fa62d4

Browse files
Sakari Ailusalexandrebelloni
authored andcommitted
i3c: dw: Remove redundant pm_runtime_mark_last_busy() calls
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 0c2ce4f commit 5fa62d4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/i3c/master/dw-i3c-master.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,6 @@ static int dw_i3c_master_bus_init(struct i3c_master_controller *m)
682682
dw_i3c_master_enable(master);
683683

684684
rpm_out:
685-
pm_runtime_mark_last_busy(master->dev);
686685
pm_runtime_put_autosuspend(master->dev);
687686
return ret;
688687
}
@@ -812,7 +811,6 @@ static int dw_i3c_master_send_ccc_cmd(struct i3c_master_controller *m,
812811
else
813812
ret = dw_i3c_ccc_set(master, ccc);
814813

815-
pm_runtime_mark_last_busy(master->dev);
816814
pm_runtime_put_autosuspend(master->dev);
817815
return ret;
818816
}
@@ -895,7 +893,6 @@ static int dw_i3c_master_daa(struct i3c_master_controller *m)
895893
dw_i3c_master_free_xfer(xfer);
896894

897895
rpm_out:
898-
pm_runtime_mark_last_busy(master->dev);
899896
pm_runtime_put_autosuspend(master->dev);
900897
return ret;
901898
}
@@ -981,7 +978,6 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
981978
ret = xfer->ret;
982979
dw_i3c_master_free_xfer(xfer);
983980

984-
pm_runtime_mark_last_busy(master->dev);
985981
pm_runtime_put_autosuspend(master->dev);
986982
return ret;
987983
}
@@ -1131,7 +1127,6 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
11311127
ret = xfer->ret;
11321128
dw_i3c_master_free_xfer(xfer);
11331129

1134-
pm_runtime_mark_last_busy(master->dev);
11351130
pm_runtime_put_autosuspend(master->dev);
11361131
return ret;
11371132
}
@@ -1299,7 +1294,6 @@ static int dw_i3c_master_disable_hotjoin(struct i3c_master_controller *m)
12991294
writel(readl(master->regs + DEVICE_CTRL) | DEV_CTRL_HOT_JOIN_NACK,
13001295
master->regs + DEVICE_CTRL);
13011296

1302-
pm_runtime_mark_last_busy(master->dev);
13031297
pm_runtime_put_autosuspend(master->dev);
13041298
return 0;
13051299
}
@@ -1325,7 +1319,6 @@ static int dw_i3c_master_enable_ibi(struct i3c_dev_desc *dev)
13251319

13261320
if (rc) {
13271321
dw_i3c_master_set_sir_enabled(master, dev, data->index, false);
1328-
pm_runtime_mark_last_busy(master->dev);
13291322
pm_runtime_put_autosuspend(master->dev);
13301323
}
13311324

@@ -1345,7 +1338,6 @@ static int dw_i3c_master_disable_ibi(struct i3c_dev_desc *dev)
13451338

13461339
dw_i3c_master_set_sir_enabled(master, dev, data->index, false);
13471340

1348-
pm_runtime_mark_last_busy(master->dev);
13491341
pm_runtime_put_autosuspend(master->dev);
13501342
return 0;
13511343
}

0 commit comments

Comments
 (0)