Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3684109pxb; Tue, 7 Sep 2021 05:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Mh1hsRnewCqLDKCr5qPhjFJQKZVT5g1RTlTA2K1cuwHRGX+4s6ruGRlM4ZinayOrU+Bt X-Received: by 2002:a5d:9bd3:: with SMTP id d19mr4804324ion.202.1631017787187; Tue, 07 Sep 2021 05:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631017787; cv=none; d=google.com; s=arc-20160816; b=cB1sOHBnU8ehtYbH1g8FX009gBbRA5nYag2r1iOLjeSRL2eueYQL49zLxNDeOQB36I xcJs4/E1jDpugPVmslCOpED550bex3J7vywf9+71VmP+80DUxSy/7827fENXtGB3v+RA UX7yTsEZtKa974FK1HlGAXGD/CyYzb5vru50j4+/tMZTKMOzRPOxEGczkYIkOXKGKomS vNIF6QQIpGZmf2VlLMzjFSvJV6Co3zXU6XIchto/SWAPKGaC54PYv4bskJzyE9z4+mjn rH1clkiSt3UmnThRTzHPW0PPFhSps80m02D1YaitFFKSTh4SdVgQO98S/GUSt4np8otR 714w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1iMjfAB52gTduVhvAY1NmxEr1L1xu1uXE6qXJ564jvU=; b=mz5ghIawW18ezPeSeWdB9lIkBtqv7I+mnMZdGGO0eqF9JrHVbUFf1kAimQZ776DS0l GdA7rPXxOH5/BOnDqMeJqTTUpNWzN9wgq/ZiqImxlbtLsJ8uad1iTGco4fPHM0AuAOgq RofC576FUefyyNs1TW5r4FP9OpyGklt3kI8+J771PtVmJ7E2SwVX1xTuGO8M0gQAv6Me vGa6NQ4L0wJFOKfmWf75SMfXQXzNpTKFQQ3L8LcW0WN6Fw8rLkTpDYOR6n1vLXZOaTpC vUDgyEBAQhBX8ptkxM22u5qa6T8lzHk9j/2eLKWbk9C7aSoZdBOYpaLlfE+zAxLXzcGH 6D0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lu8FjSSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si9488710ilk.122.2021.09.07.05.29.34; Tue, 07 Sep 2021 05:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lu8FjSSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344169AbhIGMWE (ORCPT + 99 others); Tue, 7 Sep 2021 08:22:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:36574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242841AbhIGMV3 (ORCPT ); Tue, 7 Sep 2021 08:21:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B612610FF; Tue, 7 Sep 2021 12:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631017222; bh=I05oUJO5ooxVMhmHQL/GV/yvfvUjXqZSTxiEdS57Fng=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Lu8FjSSud1pggsDoyIhZlc3iXhPXtC+fcKl7GyPKUi7ogrYmQLhadm35vnISrA2Ct kks11UL4w3ixtWTvIe0Y+PU/x9tSbCMrlv6pbC34bIm7QrR9TONdchp0phtLxbwcoG X6+uGVztesQdYY/1mQls8FOL4BsBVlu4SEud3NArTG2/WXN8MBFd8X4r3pCpaU5kCz TgqiZEvqnrAd68OzLkG6JVPCBZfwYNYyqfknX2xKn7hbPfMjOKjrp1VmYMqgs0y8ON o9myTDmB1WCl4/r7lwMwrnwNK1Pg8Lnoa1/gJ3/XBEMmuZmXfWxmUHZxXYEXTBENWJ Fg50MSZrDg/6A== Date: Tue, 7 Sep 2021 14:20:18 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: chaochao2021666@163.com Cc: pavel@ucw.cz, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jan.kiszk@siemens.com, 464759471@qq.com, chao zeng Subject: Re: [PATCH 1/3] leds:triggers:Extend the kernel panic LED trigger Message-ID: <20210907142018.45b2d114@dellmb> In-Reply-To: <20210906135320.23134-1-chaochao2021666@163.com> References: <20210906135320.23134-1-chaochao2021666@163.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Sep 2021 21:53:18 +0800 chaochao2021666@163.com wrote: > From: chao zeng > > This commit extend panic trigger, add two new panic trigger > "panic_on" and "panic_off" and keep the "panic" compatible with > "panic_blink". > > All the led on the "panic_on" would light and on > the "panic_off" would turn off We don't wont gazillion triggers, each for every possible setting. Instead extend the existing panic trigger to have another sysfs setting where you can set this behavior. echo panic >trigger echo blink >on_panic So the on_panic file can accept "on", "off" or "blink". Alternatively a pattern could be set as in the ledtrig-pattern trigger. Also your patches do not use correct spacing in commit titles: leds:triggers:Extend the kernel panic LED trigger should instead be leds: triggers: Extend the kernel panic LED trigger Marek