Thread (10 messages) 10 messages, 6 authors, 2017-08-27

[[PATCH]] Revert "leds: handle suspend/resume in heartbeat trigger"

From: Linus Walleij <hidden>
Date: 2017-07-13 12:46:14
Also in: linux-leds

On Thu, Jul 13, 2017 at 2:03 PM, Pavel Machek [off-list ref] wrote:
On Tue 2017-06-13 11:35:22, Linus Walleij wrote:
quoted
On Tue, Jun 13, 2017 at 4:39 AM, Zhang Bo [off-list ref] wrote:
quoted
This reverts commit 5ab92a7cb82c66bf30685583a38a18538e3807db.

System cannot enter suspend mode because of heartbeat led trigger.
In autosleep_wq, try_to_suspend function will try to enter suspend
mode in specific period. it will get wakeup_count then call pm_notifier
chain callback function and freeze processes.
Heartbeat_pm_notifier is called and it call led_trigger_unregister to
change the trigger of led device to none. It will send uevent message
and the wakeup source count changed. As wakeup_count changed, suspend
will abort.

Signed-off-by: Zhang Bo <redacted>
OK I was stupid, lesson learned.
Reviewed-by: Linus Walleij <redacted>
You may still want to submit patch to turn the LED off over suspend
for your platform...
I think it would make more sense to have the LED subsystem handle
that. Given that it already keeps track of LED_SUSPENDED in a
special flag.

Probably optionally, like LEDs can opt in to be turned off during
suspend.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help