Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp595461pxy; Fri, 30 Apr 2021 11:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBesV4sC0LpGgUANpfhzL+zoEqsKV5jO3gVdiG7H502BwcyIlw59wY2SOdXE1ig7WElX8I X-Received: by 2002:a17:90b:88b:: with SMTP id bj11mr6826256pjb.224.1619808846651; Fri, 30 Apr 2021 11:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619808846; cv=none; d=google.com; s=arc-20160816; b=lAY1YWU7umOGdos43NcWB0IbdI7H42Y9tnjup0K8q/7OeRZt6PamljOQANQ6cYPLe0 U8ouqVM2AZaZq+yBF+O7lOUEuBySsxfePeOs/WCmr5UVEsrfkQ+dwdQdTXFaI/3dIcKG MfWCa7jjXC/x8oun2NjDdHtXlrB2wlIN4AZ3y3qd+ngc21BcT5rByIYWzk68QArPsjKh EhTDRTQFvfKze94XdO/1jpvuOHqYhfdCrjeiTt2W2g3fjiX2RhMt35FV0y9h7arPH7Im D3aKnaL84+jqiOV5Q5Pj8ammkcrF5obCjDqjXSpt0nMjfMBBQ8FAFVfa0ADhmWyVjQig aasA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5si/VPg3wezfEGfiD87VoJiPsYaH7np3TTHzup5A59I=; b=pX6BBNx0AYuKlvDuD5O7GkPShgjKel/Iv+bC0Bvo0ipaDoPmT63kQziB9erZNbhHUl O1U8iScYJH1r6F9geRU4AA1jJ8xwoPqEO5qZBp3co2Qa7CbySaD6Ugt/MgQ6fUwoZ0Jx RIn3mHF9vEp78Mn6r+jdAvLcJByFWtDmpqDyZameWboJqKx75MNYYaXVZTH3YUcIXg3m jRh5ccjlIJlYkVPuOfdwKMUiHsjtk4GCDJNUcUYcm2+nC8JbgAzkSlH9XjEevDONMYmj OWeMIPAP/c64pI/alLuut+/8YP86t3BPNh04XdFhOqzFCa5omCXB9E7q71wyPAY6QWiJ byEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=bmc9HsKH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 19si3082124pfz.187.2021.04.30.11.53.52; Fri, 30 Apr 2021 11:54:06 -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=@infradead.org header.s=casper.20170209 header.b=bmc9HsKH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbhD3SyF (ORCPT + 99 others); Fri, 30 Apr 2021 14:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhD3SyF (ORCPT ); Fri, 30 Apr 2021 14:54:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B980DC06174A; Fri, 30 Apr 2021 11:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=5si/VPg3wezfEGfiD87VoJiPsYaH7np3TTHzup5A59I=; b=bmc9HsKHh9tg6XK8jU2azc4vSC mcE4x1rGP93PHG//RURfU0dL+WfVnYCsdmifXDQWwfmzfjHQb4I73aK/Nk4baD7B2R9l6CngCZ697 ezNK5ukDKZ3RvJQY8zcHJrUXVp5ipOM9HPCxyu8ZB5mzkJxwVW9z1pmrA8ll9MQQY+zfqhjeDIop5 dP1iHCqbQVtmdeEWUFl/+xLdunCAy/FrLEp8OVBhrmy9/n/DhJKRn3d7XbCEf42qLNSNRlX6lt8g7 thJYR4Wj52iUoarJyOICZYKV7qoGubvhug3FppEYY19a8GsmBP5CTmfSNMeQX5Wq4NYKr/232MmJv KJsiTuqQ==; Received: from [2601:1c0:6280:3f0::df68] by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lcYFr-00BPIw-Ra; Fri, 30 Apr 2021 18:52:56 +0000 Subject: Re: [RFC PATCH 2/2] leds: trigger: implement block trigger To: Enzo Matsumiya , linux-leds@vger.kernel.org, linux-block@vger.kernel.org Cc: u.kleine-koenig@pengutronix.de, Jens Axboe , Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org References: <20210430183216.27458-1-ematsumiya@suse.de> <20210430183216.27458-3-ematsumiya@suse.de> From: Randy Dunlap Message-ID: Date: Fri, 30 Apr 2021 11:52:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210430183216.27458-3-ematsumiya@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/30/21 11:32 AM, Enzo Matsumiya wrote: > diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig > index b77a01bd27f4..bead31a19148 100644 > --- a/drivers/leds/trigger/Kconfig > +++ b/drivers/leds/trigger/Kconfig > @@ -153,4 +153,14 @@ config LEDS_TRIGGER_TTY > > When build as a module this driver will be called ledtrig-tty. > > +config LEDS_TRIGGER_BLOCK > + tristate "LED Block Device Trigger" > + depends on BLOCK > + default m Drop the "default m". We don't enable drivers (even to build modules) unless they are necessary, e.g., for booting. > + help > + This allows LEDs to be controlled by block device activity. > + This trigger doesn't require the lower level drivers to have any > + instrumentation. The activity is collected by polling the disk stats. > + If unsure, say Y. > + > endif # LEDS_TRIGGERS thanks. -- ~Randy