Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5910791pxb; Sun, 7 Nov 2021 23:29:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwq03IOfPQ8+uwJGlRlRIsQ874TDbsc3RrW+WSOHkq+lLIruIqqnuqXBAqNuPHfyvqJ0AzF X-Received: by 2002:a17:907:72c2:: with SMTP id du2mr7646301ejc.155.1636356598706; Sun, 07 Nov 2021 23:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636356598; cv=none; d=google.com; s=arc-20160816; b=rPY0msa49uEiUni7HbrarT1q4ucGLyiXNuVLfj9+U6c+i4+HuobNLxDmzhqCDBxtmR jnrM0pT31gBzMtuI5aD2ilXlm5AS5W4kK9x6yTDjI79Rvns6EFqbWKZbXnby8OhcsApq UffcEkL0gqZBOVIEff3cooqt/TlQYCb7bKig4llTEk+nGKSmkw7FUmid/JLq6YnxL94P 2LfdY36RVjSczTpKWneAXm/4DgHUmDoNlQxIQt4cIB9imRlpA81/R0ybgM5bDcRVwAQ0 wcqeNNkxu+tE0Bq9TIDTqIJPI45f3nHrfEFYIyAh6dLTBSLXmbt8ZT/CXdTdGUxUWM+3 UNVA== 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 :to:subject:dkim-signature; bh=fXq7+MPtzIJaHy2u5Sla+LxJHB+7hwlQh6EuB/DXOcE=; b=aiy8h56tKjagcMrtPv8+DZBZBwOdS9APwpMx9JqCM+dPUMicbbMThCWb7gH0b6aSFL tGLz/3r0i/H5k9JgAhVe+6fZ9Q9En9cGaVS5mHTMrwx2BgYgXlffbtmpFr4JHNVWe+wO 2FkDF6LXXAfKoqc/cb/iFTiLRdQeayijau7xGxjoosomDLdDTMFv4UMxboZVBBvPJ52m T3MWSwEZrlRrM4rTM+0tAZChoCNHy+dyI3bb8GPJMxtlg7fLvTooykIK4gJmsinFboYe DPz5qy7DkzyqCxemMcOurNE8eQO10TJqcR6cKADLrBlGNQbh5ssfnzn4hjtrb9Dyot9W gOow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=nfdpIMcK; 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 z4si29003033edp.480.2021.11.07.23.29.35; Sun, 07 Nov 2021 23:29:58 -0800 (PST) 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=merlin.20170209 header.b=nfdpIMcK; 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 S236359AbhKHC1w (ORCPT + 99 others); Sun, 7 Nov 2021 21:27:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236349AbhKHC1t (ORCPT ); Sun, 7 Nov 2021 21:27:49 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2192C061570; Sun, 7 Nov 2021 18:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=fXq7+MPtzIJaHy2u5Sla+LxJHB+7hwlQh6EuB/DXOcE=; b=nfdpIMcKnxJmCRj/alHgM4rBdx +lRosgdUbAH2qS4k9JA8Os9CfC8FYJgUbAUfynhdFHqyTtF6wLWTaguJs3mbBw+bEUncZ2UVfLItE QZUZ+ZN69hbJ8bJnyEGkZ95C0/5/gLtCo6kADpPtEsGs++P0OsQHLdvwMeXhM+ctZ0HdSWl467jX5 5MaeT1JwBQnVQYV+TVVkFF2Z30AWCzZ/PQ/fiEWzrwer8EPOAwaUxnajIcy69TN6Yobj0IEZbFfJc XsGue80NTSf5ra77qz60CfUU5LcQzfLNWLinKYRDsfWV3VCtAPNMSEP4lwSYBjAvGJzKLKZqoP4/7 QkVXOpzg==; Received: from [2601:1c0:6280:3f0::aa0b] by merlin.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjuLG-008fQY-Nt; Mon, 08 Nov 2021 02:25:03 +0000 Subject: Re: [RFC PATCH v2 3/5] leds: trigger: add offload-phy-activity trigger To: Ansuel Smith , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Jonathan Corbet , Pavel Machek , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org References: <20211108002500.19115-1-ansuelsmth@gmail.com> <20211108002500.19115-4-ansuelsmth@gmail.com> From: Randy Dunlap Message-ID: <72114aa0-3154-2027-0eae-36d08003e436@infradead.org> Date: Sun, 7 Nov 2021 18:24:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211108002500.19115-4-ansuelsmth@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/7/21 4:24 PM, Ansuel Smith wrote: > diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig > index 33aba8defeab..14023e160ba1 100644 > --- a/drivers/leds/trigger/Kconfig > +++ b/drivers/leds/trigger/Kconfig > @@ -164,4 +164,33 @@ config LEDS_TRIGGER_TTY > > When build as a module this driver will be called ledtrig-tty. > > +config LEDS_OFFLOAD_TRIGGER_PHY_ACTIVITY > + tristate "LED Offload Trigger for PHY Activity" > + depends on LEDS_OFFLOAD_TRIGGERS > + help > + This allows LEDs to be configured to run by hardware and offloaded to be run > + based on some rules. The LED will blink or be on based on the PHY Could "on" be changed to ON or "on" or 'on' here: be ON based on the PHY > + Activity for example on packet receive or based on the link speed. -- ~Randy