]> git.baikalelectronics.ru Git - kernel.git/commit
leds: gpio: Support the "panic-indicator" firmware property
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Thu, 28 Apr 2016 22:03:40 +0000 (19:03 -0300)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 6 May 2016 08:26:07 +0000 (10:26 +0200)
commitb2232b5388f8b0ebd4c5490479940acdc8514bd6
tree5a4564508a9380adf07ff33a9a91b8ef51e554a1
parenta6f17d42e2fda600e654f8b9aac6d23c22047431
leds: gpio: Support the "panic-indicator" firmware property

Calling a GPIO LEDs is quite likely to work even if the kernel
has paniced, so they are ideal to blink in this situation.
This commit adds support for the new "panic-indicator"
firmware property, allowing to mark a given LED to blink on
a kernel panic.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Documentation/devicetree/bindings/leds/leds-gpio.txt
drivers/leds/leds-gpio.c
include/linux/leds.h