diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-06-08 10:29:48 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-06-08 11:47:06 +0200 |
commit | 5ab92a7cb82c66bf30685583a38a18538e3807db (patch) | |
tree | e4e31ecd7cce17d9716202acdb1da4b3c12b907e /drivers/leds/leds-sead3.c | |
parent | 7cfe749fad5158247282f2fee30773fd454029ab (diff) |
leds: handle suspend/resume in heartbeat trigger
The following phenomena was observed: when suspending the
system, sometimes the heartbeat LED was left on, glowing and
wasting power while the rest of the system is asleep, also
disturbing power dissapation measures on the odd suspend
cycle when it's left on.
Clearly this is not how we want the heartbeat trigger to
work: it should turn off and leave the LED off during
system suspend.
This removes the heartbeat trigger when preparing suspend and
restores it during resume. The trigger code will make sure all
LEDs are left in OFF state after removing the trigger, and
will re-enable the trigger on all LEDs after resuming.
Cc: linux-pm@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds/leds-sead3.c')
0 files changed, 0 insertions, 0 deletions