* [PATCH -next] bus: ti-sysc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
@ 2021-05-31 14:25 Zhang Qilong
2021-06-11 7:24 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Qilong @ 2021-05-31 14:25 UTC (permalink / raw)
To: tony; +Cc: linux-omap
Using pm_runtime_resume_and_get is more appropriate
for simplifing code.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
drivers/bus/ti-sysc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 5fae60f8c135..705e2ea273f9 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -3061,9 +3061,8 @@ static int sysc_probe(struct platform_device *pdev)
goto unprepare;
pm_runtime_enable(ddata->dev);
- error = pm_runtime_get_sync(ddata->dev);
+ error = pm_runtime_resume_and_get(ddata->dev);
if (error < 0) {
- pm_runtime_put_noidle(ddata->dev);
pm_runtime_disable(ddata->dev);
goto unprepare;
}
@@ -3117,9 +3116,8 @@ static int sysc_remove(struct platform_device *pdev)
cancel_delayed_work_sync(&ddata->idle_work);
- error = pm_runtime_get_sync(ddata->dev);
+ error = pm_runtime_resume_and_get(ddata->dev);
if (error < 0) {
- pm_runtime_put_noidle(ddata->dev);
pm_runtime_disable(ddata->dev);
goto unprepare;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] bus: ti-sysc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
2021-05-31 14:25 [PATCH -next] bus: ti-sysc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync Zhang Qilong
@ 2021-06-11 7:24 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2021-06-11 7:24 UTC (permalink / raw)
To: Zhang Qilong; +Cc: linux-omap
* Zhang Qilong <zhangqilong3@huawei.com> [210531 17:11]:
> Using pm_runtime_resume_and_get is more appropriate
> for simplifing code.
Thanks applying into omap-for-v5.14/ti-sysc.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-11 7:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 14:25 [PATCH -next] bus: ti-sysc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync Zhang Qilong
2021-06-11 7:24 ` Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.