Skip to content
Commit 436c4c45 authored by Zhang Bo's avatar Zhang Bo Committed by Jacek Anaszewski
Browse files

Revert "leds: handle suspend/resume in heartbeat trigger"

This reverts commit 5ab92a7c.

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.

Fixes: 5ab92a7c

 ("leds: handle suspend/resume in heartbeat trigger")
Signed-off-by: default avatarZhang Bo <bo.zhang@nxp.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 4f02b50e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment