Skip to content

Commit 0c2ce4f

Browse files
Sakari Ailusalexandrebelloni
authored andcommitted
i3c: master: svc: 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]> Reviewed-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent bc4a09d commit 0c2ce4f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ static int svc_i3c_master_set_speed(struct i3c_master_controller *m,
665665
}
666666

667667
rpm_out:
668-
pm_runtime_mark_last_busy(master->dev);
669668
pm_runtime_put_autosuspend(master->dev);
670669

671670
return ret;
@@ -780,7 +779,6 @@ static int svc_i3c_master_bus_init(struct i3c_master_controller *m)
780779
goto rpm_out;
781780

782781
rpm_out:
783-
pm_runtime_mark_last_busy(master->dev);
784782
pm_runtime_put_autosuspend(master->dev);
785783

786784
return ret;
@@ -802,7 +800,6 @@ static void svc_i3c_master_bus_cleanup(struct i3c_master_controller *m)
802800
/* Disable master */
803801
writel(0, master->regs + SVC_I3C_MCONFIG);
804802

805-
pm_runtime_mark_last_busy(master->dev);
806803
pm_runtime_put_autosuspend(master->dev);
807804
}
808805

@@ -1208,7 +1205,6 @@ static int svc_i3c_master_do_daa(struct i3c_master_controller *m)
12081205
dev_err(master->dev, "Cannot handle such a list of devices");
12091206

12101207
rpm_out:
1211-
pm_runtime_mark_last_busy(master->dev);
12121208
pm_runtime_put_autosuspend(master->dev);
12131209

12141210
return ret;
@@ -1517,7 +1513,6 @@ static void svc_i3c_master_enqueue_xfer(struct svc_i3c_master *master,
15171513
}
15181514
spin_unlock_irqrestore(&master->xferqueue.lock, flags);
15191515

1520-
pm_runtime_mark_last_busy(master->dev);
15211516
pm_runtime_put_autosuspend(master->dev);
15221517
}
15231518

@@ -1807,7 +1802,6 @@ static int svc_i3c_master_disable_ibi(struct i3c_dev_desc *dev)
18071802

18081803
ret = i3c_master_disec_locked(m, dev->info.dyn_addr, I3C_CCC_EVENT_SIR);
18091804

1810-
pm_runtime_mark_last_busy(master->dev);
18111805
pm_runtime_put_autosuspend(master->dev);
18121806

18131807
return ret;
@@ -1840,7 +1834,6 @@ static int svc_i3c_master_disable_hotjoin(struct i3c_master_controller *m)
18401834
if (!master->enabled_events)
18411835
svc_i3c_master_disable_interrupts(master);
18421836

1843-
pm_runtime_mark_last_busy(master->dev);
18441837
pm_runtime_put_autosuspend(master->dev);
18451838

18461839
return 0;
@@ -1960,7 +1953,6 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
19601953
if (ret)
19611954
goto rpm_disable;
19621955

1963-
pm_runtime_mark_last_busy(&pdev->dev);
19641956
pm_runtime_put_autosuspend(&pdev->dev);
19651957

19661958
return 0;

0 commit comments

Comments
 (0)