[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAEAJfC=O1akKKdW-9P7OkFZyDfE-ApbWhdYr7HPhszDrFcV1Q@mail.gmail.com>
Date: Mon, 25 Apr 2016 13:27:36 -0300
From: Ezequiel Garcia <ezequiel@...guardiasur.com.ar>
To: Jacek Anaszewski <j.anaszewski@...sung.com>
Cc: Pavel Machek <pavel@....cz>,
Linux LED Subsystem <linux-leds@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Richard Purdie <rpurdie@...ys.net>
Subject: Re: [PATCH 1/5] leds: triggers: Allow to switch the trigger to
"panic" on a kernel panic
On 25 April 2016 at 03:56, Jacek Anaszewski <j.anaszewski@...sung.com> wrote:
> On 04/24/2016 11:29 AM, Pavel Machek wrote:
>>
>> On Sun 2016-04-24 11:25:51, Pavel Machek wrote:
>>>
>>> On Mon 2016-04-04 17:22:02, Ezequiel Garcia wrote:
>>>>
>>>> This commit adds a new led_cdev flag LED_BLINK_AT_PANIC, which
>>>> allows to mark a specific LED to be switched to the "panic"
>>>> trigger, on a kernel panic.
>>>>
>>>> This is useful to allow the user to assign a regular trigger
>>>> to a given LED, and still blink that LED on a kernel panic.
>>>>
>>>> Signed-off-by: Ezequiel Garcia <ezequiel@...guardiasur.com.ar>
>>>
>>>
>>>
>>>> drivers/leds/led-triggers.c | 52
>>>> +++++++++++++++++++++++++++++++++++++++++++++
>>>> include/linux/leds.h | 1 +
>>>
>>>
>>> Could we get this out of the core? I'm pretty sure most users are not
>>> interested...
>
>
> Good point.
>
Not sure how we can get it out of the core, and still implement it.
The goal is to run-time switch user-specified LEDs and blink them when
the kernel panics, and so it needs to mess up with some core private
structures.
Unless we don't want this feature at all.
--
Ezequiel GarcĂa, VanguardiaSur
www.vanguardiasur.com.ar
Powered by blists - more mailing lists