linux/drivers/leds
Linus Walleij 5ab92a7cb8 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>
2016-06-08 11:47:06 +02:00
..
trigger leds: handle suspend/resume in heartbeat trigger 2016-06-08 11:47:06 +02:00
dell-led.c dell-led: use dell_smbios_send_request() for performing SMBIOS calls 2016-03-23 10:05:44 -07:00
Kconfig leds: ss4200: Add depend on x86 arch 2016-04-19 09:01:19 +02:00
led-class-flash.c
led-class.c leds: core: avoid error message when a USB LED device is unplugged 2016-03-14 09:22:20 +01:00
led-core.c leds: core: Fix brightness setting upon hardware blinking enabled 2016-06-08 11:47:06 +02:00
led-triggers.c leds: triggers: Allow to switch the trigger to "panic" on a kernel panic 2016-05-06 10:22:09 +02:00
leds-88pm860x.c leds: 88pm860x: Use devm_led_classdev_register 2016-03-14 09:22:22 +01:00
leds-aat1290.c
leds-adp5520.c
leds-asic3.c
leds-bcm6328.c
leds-bcm6358.c
leds-bd2802.c
leds-blinkm.c
leds-clevo-mail.c
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-da903x.c leds: da903x: Use devm_led_classdev_register 2016-03-14 09:22:22 +01:00
leds-da9052.c
leds-dac124s085.c
leds-fsg.c
leds-gpio-register.c
leds-gpio.c leds: gpio: Support the "panic-indicator" firmware property 2016-05-06 10:26:07 +02:00
leds-hp6xx.c
leds-ipaq-micro.c
leds-is31fl32xx.c leds: Add SN3218 and SN3216 support to the IS31FL32XX driver 2016-03-14 09:22:22 +01:00
leds-ktd2692.c
leds-lm355x.c
leds-lm3530.c
leds-lm3533.c leds: lm3533: Use devm_led_classdev_register 2016-03-14 09:22:21 +01:00
leds-lm3642.c
leds-locomo.c
leds-lp55xx-common.c
leds-lp55xx-common.h
leds-lp3944.c leds: lp3944: improve wording and formatting in a comment 2016-03-14 09:22:20 +01:00
leds-lp5521.c
leds-lp5523.c
leds-lp5562.c
leds-lp8501.c
leds-lp8788.c leds: lp8788: Use devm_led_classdev_register 2016-03-14 09:22:22 +01:00
leds-lp8860.c
leds-lt3593.c
leds-max8997.c leds: max8997: Use devm_led_classdev_register 2016-03-14 09:22:23 +01:00
leds-max77693.c
leds-mc13783.c
leds-menf21bmc.c
leds-net48xx.c
leds-netxbig.c
leds-ns2.c
leds-ot200.c
leds-pca955x.c
leds-pca963x.c
leds-pca9532.c GPIO bulk updates for the v4.5 kernel cycle: 2016-01-17 12:32:01 -08:00
leds-powernv.c
leds-pwm.c leds: pwm: Use pwm_get_args() where appropriate 2016-05-17 14:45:02 +02:00
leds-rb532.c
leds-regulator.c
leds-s3c24xx.c leds: s3c24xx: Use devm_led_classdev_register 2016-03-14 09:22:22 +01:00
leds-sead3.c
leds-ss4200.c leds: ss4200: add DMI data for FSC SCALEO Home Server 2016-04-19 09:03:20 +02:00
leds-sunfire.c
leds-syscon.c
leds-tca6507.c leds: tca6507: silence an uninitialized variable warning 2016-04-14 13:08:58 +02:00
leds-tlc591xx.c
leds-versatile.c
leds-wm831x-status.c leds: wm831x-status: Use devm_led_classdev_register 2016-03-14 09:22:22 +01:00
leds-wm8350.c
leds-wrap.c
leds.h leds: triggers: Allow to switch the trigger to "panic" on a kernel panic 2016-05-06 10:22:09 +02:00
Makefile leds: Add driver for the ISSI IS31FL32xx family of LED controllers 2016-03-14 09:22:21 +01:00