alistair23-linux/drivers/leds/trigger
Zhang Bo 436c4c45b5 Revert "leds: handle suspend/resume in heartbeat trigger"
This reverts commit 5ab92a7cb8.

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: 5ab92a7cb8 ("leds: handle suspend/resume in heartbeat trigger")
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
2017-06-13 20:37:01 +02:00
..
Kconfig leds: convert IDE trigger to common disk trigger 2016-06-20 09:57:56 +02:00
ledtrig-backlight.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-camera.c
ledtrig-cpu.c leds/trigger/cpu: Add LED trigger for all CPUs aggregated 2017-03-06 22:06:47 +01:00
ledtrig-default-on.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-disk.c leds: convert IDE trigger to common disk trigger 2016-06-20 09:57:56 +02:00
ledtrig-gpio.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-heartbeat.c Revert "leds: handle suspend/resume in heartbeat trigger" 2017-06-13 20:37:01 +02:00
ledtrig-mtd.c leds: trigger: Introduce a MTD (NAND/NOR) trigger 2016-04-13 10:23:14 +02:00
ledtrig-oneshot.c leds: triggers: oneshot: fix module license specification 2016-01-04 09:57:36 +01:00
ledtrig-panic.c leds: triggers: Allow to switch the trigger to "panic" on a kernel panic 2016-05-06 10:22:09 +02:00
ledtrig-timer.c
ledtrig-transient.c leds: ledtrig-transient: fix duration to be msec instead of jiffies 2016-01-04 09:57:36 +01:00
Makefile leds: convert IDE trigger to common disk trigger 2016-06-20 09:57:56 +02:00