Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2344032pxy; Sun, 2 May 2021 19:45:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+Ne/ZzVu0j16LLNF/HTh3WukkiQC4T6mfwpJC3NymVb+lFM2FnHAS6LcYZLN+v/cwindu X-Received: by 2002:a17:906:fa81:: with SMTP id lt1mr12189550ejb.277.1620009902435; Sun, 02 May 2021 19:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620009902; cv=none; d=google.com; s=arc-20160816; b=jMLVOdCbmqt3ntMsfGraQuZdD1XQo69ymX//7gxli97jsb0ndqlhPk11Kgr27dKB4g uK/xSD8mkppsdv4f4G6hhwsJROv69feIpBaiDVfDW1oh0oTq5Q1X2DpB7cGmyAOZLuqq nzGMlbirjGCC2F+jsPWT3scPLzN4Hl4Bppl/2KnrL9qOGf+t/e8UQdiGM4FeiKL+/flM a1v5zhuBpk+g9WGxUCFydd23uraH1i3iMH6y1xIbNPgUjdBSj/CydLFT0KeVpf5UkZQ3 bdqMg9Tx7udD48xhhzWkgFm8oZZxR13boSZ5A20358wh4jJeM0EJPZp3dQHSsBKcEXoN xV7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XyffuCwStoTNy7O7Lw3GvJMrF4au9dBIzv32J58dTBs=; b=R4BEd9/o/Anzjsa4jOPA/hHBX/yUo1XB1Yya5Uio4S7JfBlLXJhsGOEUx2RWlUMkv2 g7AbIMWctIQVMl2X6hvua0BCb3iREYPKNkjk1VRUnBYKaNa6pAtfnnM6ABFgkGj8zyu9 vCH3zlVt8cbJMzjCq/83IqVXagksgsIiqSnmuaTewJ1UciViD4gYJ2rL85oxTPDx4FRV lnuhHbSekQMJOH13Z4CcFNKcKrVAubvWaoVLdBPYzDoztCZ8XtBIbq0E1CFEgyE7O7Hj 2QCFyizqN6D1hAu4X2aoQ4xUr+/dgjus4URnzxgw5Srnx9bPXtM1khplxiX6B7jHMaK9 G7Zw== ARC-Authentication-Results: i=1; mx.google.com; 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 f19si7948972edq.277.2021.05.02.19.44.39; Sun, 02 May 2021 19:45:02 -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; 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 S232831AbhECCjn (ORCPT + 99 others); Sun, 2 May 2021 22:39:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:47880 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbhECCjm (ORCPT ); Sun, 2 May 2021 22:39:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B9709B013; Mon, 3 May 2021 02:38:48 +0000 (UTC) Date: Sun, 2 May 2021 23:38:45 -0300 From: Enzo Matsumiya To: Randy Dunlap Cc: linux-leds@vger.kernel.org, linux-block@vger.kernel.org, u.kleine-koenig@pengutronix.de, Jens Axboe , Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/2] leds: trigger: implement block trigger Message-ID: <20210503023845.qkcq3pttfewdqflf@hyori> References: <20210430183216.27458-1-ematsumiya@suse.de> <20210430183216.27458-3-ematsumiya@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/30, Randy Dunlap wrote: >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 Thanks, will do in v2. Cheers, Enzo