mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] genirq: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
@ 2022-04-18 11:07 cgel.zte
  2022-05-02 12:11 ` [tip: irq/core] genirq: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync() tip-bot2 for Minghao Chi
  0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2022-04-18 11:07 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel, Minghao Chi, Zeal Robot

From: Minghao Chi <chi.minghao@zte.com.cn>

Using pm_runtime_resume_and_get is more appropriate
for simplifing code

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
 kernel/irq/chip.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 54af0deb239b..8ddcb8e883d7 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -1576,11 +1576,9 @@ int irq_chip_pm_get(struct irq_data *data)
 	int retval;
 
 	if (IS_ENABLED(CONFIG_PM) && dev) {
-		retval = pm_runtime_get_sync(dev);
-		if (retval < 0) {
-			pm_runtime_put_noidle(dev);
+		retval = pm_runtime_resume_and_get(dev);
+		if (retval < 0)
 			return retval;
-		}
 	}
 
 	return 0;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-02 12:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 11:07 [PATCH] genirq: using pm_runtime_resume_and_get instead of pm_runtime_get_sync cgel.zte
2022-05-02 12:11 ` [tip: irq/core] genirq: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync() tip-bot2 for Minghao Chi

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®