* [PATCH] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
@ 2022-04-20 9:03 cgel.zte
2022-04-26 13:09 ` Martin K. Petersen
2022-05-03 0:51 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: cgel.zte @ 2022-04-20 9:03 UTC (permalink / raw)
To: alim.akhtar; +Cc: linux-scsi, linux-kernel, Minghao Chi, Zeal Robot
From: Minghao Chi <chi.minghao@zte.com.cn>
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
drivers/scsi/ufs/ti-j721e-ufs.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/ufs/ti-j721e-ufs.c b/drivers/scsi/ufs/ti-j721e-ufs.c
index eafe0db98d54..122d650d0810 100644
--- a/drivers/scsi/ufs/ti-j721e-ufs.c
+++ b/drivers/scsi/ufs/ti-j721e-ufs.c
@@ -29,11 +29,9 @@ static int ti_j721e_ufs_probe(struct platform_device *pdev)
return PTR_ERR(regbase);
pm_runtime_enable(dev);
- ret = pm_runtime_get_sync(dev);
- if (ret < 0) {
- pm_runtime_put_noidle(dev);
+ ret = pm_runtime_resume_and_get(dev);
+ if (ret < 0)
goto disable_pm;
- }
/* Select MPHY refclk frequency */
clk = devm_clk_get(dev, NULL);
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
2022-04-20 9:03 [PATCH] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync cgel.zte
@ 2022-04-26 13:09 ` Martin K. Petersen
2022-05-03 0:51 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2022-04-26 13:09 UTC (permalink / raw)
To: cgel.zte; +Cc: alim.akhtar, linux-scsi, linux-kernel, Minghao Chi, Zeal Robot
> Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
> pm_runtime_put_noidle. This change is just to simplify the code, no
> actual functional changes.
Applied to 5.19/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
2022-04-20 9:03 [PATCH] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync cgel.zte
2022-04-26 13:09 ` Martin K. Petersen
@ 2022-05-03 0:51 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2022-05-03 0:51 UTC (permalink / raw)
To: alim.akhtar, cgel.zte
Cc: Martin K . Petersen, Minghao Chi, linux-kernel, linux-scsi, Zeal Robot
On Wed, 20 Apr 2022 09:03:52 +0000, cgel.zte@gmail.com wrote:
> From: Minghao Chi <chi.minghao@zte.com.cn>
>
> Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
> pm_runtime_put_noidle. This change is just to simplify the code, no
> actual functional changes.
>
>
> [...]
Applied to 5.19/scsi-queue, thanks!
[1/1] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
https://git.kernel.org/mkp/scsi/c/75b8715e20a2
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-03 19:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 9:03 [PATCH] scsi: ufs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync cgel.zte
2022-04-26 13:09 ` Martin K. Petersen
2022-05-03 0:51 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®