Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp661056pxy; Fri, 30 Apr 2021 13:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP8VwORG2M/RzYyZp78SrJIy26zYBZfjAarOwnNhJjOZpeiHQz9Qc8ZFdFN6UacP6JEPF9 X-Received: by 2002:a05:6402:40d5:: with SMTP id z21mr8405764edb.20.1619814576509; Fri, 30 Apr 2021 13:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619814576; cv=none; d=google.com; s=arc-20160816; b=JvUyaa3jQHUemtskCEnQrRPWAcaIiurLn8KF1f8xgUnbqpYFaUmKnu7/KBRUoEC0vl 2SbG08RT2dMykPK5pXMrRoDKC8KDDDnr76UnYcTM62bMT6KnhzSWnPKeTyet9m2SxD7p xDPbKJ7ljkeRuLHZssbpBHdyhpVsFAwewEHigOug8d6mi7tp6IoMhCj5LoWmNmGMAB6E 1Vy9r6UYqmz+FXCmO4jxqbwimXSNmFVIMu6A0YASRjjiXNI6uBa5AV00H76Jkvfa8yPi xA3mZMncy+RwNf7pMy6a6UP2OYOZ2PpJWyLiwUc/UcjsWhPf1zVs30wVYrK7Gp6UgOBu JmSw== 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; bh=jX/IcseSuGvelyC9K+ByBORzJPb9Sqd/iGma2tV9/4Y=; b=M65L1GmgjpPps/aWo4eBA6L2+U1SNVKngYQYbp7iQIL6+pOSBytozn3YG7HS+kprlZ ouHV+sU89yvhhxUnJ9aOnHqLISrE+iIvZWpFoG+I4dPAHeXnJu6XwxmNjA8fXZry39gF 9wWsuxtscZ7XR0EcHU7U+PGRmIuhpIlbRK5oDhi0ShQlKK27hU2HJDU9UyyXX+Fin9X1 9ba54SwLA9HcO20AU8w7sm2FknpAVtX6xRI3tHckMYNkw0eVOdZwKfeS3haF+g1bMTmt cyuuF/ykvjq2sBUg7katCWCv1IYlOcY771ntN0WHPsIM5jEH1ebTB7Ij5xeB5R713sOB docA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc8si4107162ejb.452.2021.04.30.13.29.13; Fri, 30 Apr 2021 13:29:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235516AbhD3UMc (ORCPT + 99 others); Fri, 30 Apr 2021 16:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235665AbhD3UMO (ORCPT ); Fri, 30 Apr 2021 16:12:14 -0400 Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE38C06138C; Fri, 30 Apr 2021 13:11:25 -0700 (PDT) Received: from thinkpad (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id BB7591409BE; Fri, 30 Apr 2021 22:11:22 +0200 (CEST) Date: Fri, 30 Apr 2021 22:11:21 +0200 From: Marek Behun To: Enzo Matsumiya 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: <20210430221121.46461c81@thinkpad> In-Reply-To: <20210430183216.27458-3-ematsumiya@suse.de> References: <20210430183216.27458-1-ematsumiya@suse.de> <20210430183216.27458-3-ematsumiya@suse.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WELCOMELIST,USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Apr 2021 15:32:11 -0300 Enzo Matsumiya wrote: > Activity is then represented in an accumulated manner (part_read_stat_accum()), > with a fixed blinking interval of 50ms. part_stat_read_accum, not part_read_stat_accum Why only accum? With the netdev trigger, you can choose whether rx, tx, or both are blinking the LED. Also I think the trigger should be called "blockdev" instead of "block". This is consistent with "netdev", and avoids misinterpretation with the verb "to block". Marek