Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbcDZHPh (ORCPT ); Tue, 26 Apr 2016 03:15:37 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:61342 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751331AbcDZHPf (ORCPT ); Tue, 26 Apr 2016 03:15:35 -0400 X-AuditID: cbfec7f4-f796c6d000001486-ad-571f15948097 Message-id: <571F1593.8000400@samsung.com> Date: Tue, 26 Apr 2016 09:15:31 +0200 From: Jacek Anaszewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-version: 1.0 To: Ezequiel Garcia Cc: Pavel Machek , Linux LED Subsystem , "linux-kernel@vger.kernel.org" , linux-arm-kernel , Richard Purdie Subject: Re: [PATCH 1/5] leds: triggers: Allow to switch the trigger to "panic" on a kernel panic References: <1459801326-5541-1-git-send-email-ezequiel@vanguardiasur.com.ar> <1459801326-5541-2-git-send-email-ezequiel@vanguardiasur.com.ar> <20160424092551.GB23015@amd> <20160424092951.GA25596@amd> <571DBFAE.7060605@samsung.com> In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsVy+t/xy7pTROXDDW4/0rXY+OIzi8Wmx9dY LS7vmsNmsfXNOkaLu6eOslns3vWU1YHNY/OSeo8983+weqxY/Z3do+vIdTaPz5vkAlijuGxS UnMyy1KL9O0SuDJWrl/CVjCbp2L3tJvsDYx3OLsYOTkkBEwkNq/5zw5hi0lcuLeerYuRi0NI YCmjxLS+ScwQzjNGifVnrrKCVPEKaEn8O/uOqYuRg4NFQFWio1MUJMwmYCjx88VrJhBbVCBC 4s/pfVDlghI/Jt9jAbFFBIwl1ry+AVbDLPCVUeL/B14QW1ggWeLe3g3MILaQwGYmiRUfdUHG cwoES2y+HgBRbibxqGUdM4QtD3TzW+YJjAKzkGyYhaRsFpKyBYzMqxhFU0uTC4qT0nMN9YoT c4tL89L1kvNzNzFCwvrLDsbFx6wOMQpwMCrx8CoskwsXYk0sK67MPcQowcGsJMIbJigfLsSb klhZlVqUH19UmpNafIhRmoNFSZx37q73IUIC6YklqdmpqQWpRTBZJg5OqQZGHu/p9Xu2+Ute +7RK+stbfu7g/k+t3xaE1lYq2gc9Xb0vv4OT45l+ve1r56+PN30UexuWunkP49SlTW2/teaq 2947nVtzy/eR4KtvF7aJv1+RX9jl3+Wn/HnLPgWL/xMZ5l0o3n9JPILdVZOdc8eHlsgN6mmd JmHXFKfc3nn5ulCu2uW2ipNSSizFGYmGWsxFxYkAS7i2fWcCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1513 Lines: 50 Hi Ezequiel, On 04/25/2016 06:27 PM, Ezequiel Garcia wrote: > On 25 April 2016 at 03:56, Jacek Anaszewski 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 >>>> >>>> >>>> >>>>> 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. > It seems that the entire added code can be easily moved to a separate module, let's say led-panic-notifier.c ? It should select LEDS_TRIGGER_PANIC, as it would make no sense to have the former enabled without the latter. -- Best regards, Jacek Anaszewski