Thread (9 messages) 9 messages, 4 authors, 2023-08-01

Re: [PATCH 1/3] PM / wakeirq: fix wake irq arming

From: Tony Lindgren <tony@atomide.com>
Date: 2023-07-14 07:48:18
Also in: linux-arm-msm, linux-pm, lkml, stable

* Johan Hovold [off-list ref] [230713 15:01]:
The decision whether to enable a wake irq during suspend can not be done
based on the runtime PM state directly as a driver may use wake irqs
without implementing runtime PM. Such drivers specifically leave the
state set to the default 'suspended' and the wake irq is thus never
enabled at suspend.

Add a new wake irq flag to track whether a dedicated wake irq has been
enabled at runtime suspend and therefore must not be enabled at system
suspend.

Note that pm_runtime_enabled() can not be used as runtime PM is always
disabled during late suspend.
Works for me:

Reviewed-by: Tony Lindgren <tony@atomide.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help