Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp167528pxb; Mon, 8 Nov 2021 11:34:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxD68ScXfS/p5VAkKplW1rqEvESbAT/+Jw+blEJEp15aoF8nsa60E0TjO8l2+mJO9P2IWX6 X-Received: by 2002:a92:b110:: with SMTP id t16mr1112706ilh.38.1636400071428; Mon, 08 Nov 2021 11:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636400071; cv=none; d=google.com; s=arc-20160816; b=0FAoACNWfFf875OjOy+qe7G1uZsGc7QsDo7I6YJOWVnKoXqjKzx7JAIGq6elR0ASM0 TS9wQllqEjVc364FLy7bw5ddzD9Ee7pkyXkbRZk0tNd2rNtnNfDK8mCGkp3yi+SIGEQO 4Z0dDpWLtTsIg4tzmOfXqf/mtKtahIYk92/TqAreD4KOGwLvd6el97t6kXWinICLc/sy +tUEFhBB4QHMO0JGrnjaKMOV8f2o7jVYY4k4dQE1ZjYUFpta6KJY+RgW8kOomGp+hf8g PvA+yFBnFsb1FFz3Ua63h6or6QfUSGGq/LMRstq8l6Zzz+ODBu4RqwNd9U+zjkJNdsa7 U69Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wJ+KFiLWXSd9Yn9CEeNsZPzYPyPhxqpWIbv+1zHqmxk=; b=Ph04orI2RrhJf63nk0m5moRHm/Qfpsji1r0dmI9bCLpgGsQP4+fDW8Uo4ZuWoQM3gq 8aYYcSVuka1mP7cDHEIWiMFVW38NYgqV9EaZabb09FV6GYH+8nMlb1J/ftjwSYR8yb/F fuTWqofWCxvxCSbU+ckhugwUGaC/l6gjbf1XCHRbwDpnPgL1p/cOp/CMk6+hMQqCg4at Ir6edytkqWuBXjreedz8PSexbCFVruQebd598BRkM719bvNLNsNEeUWNpvVHQs7OiRxi StYHup2d5mjbptvnpLXWZLLj09qkD/xoS+dKU3FtEGdwIBSXVFdTWYZHYhVGTqNaP2ua zohA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rjG4BV9D; 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 f40si3577093jav.41.2021.11.08.11.34.19; Mon, 08 Nov 2021 11:34:31 -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=@lunn.ch header.s=20171124 header.b=rjG4BV9D; 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 S240087AbhKHNvW (ORCPT + 99 others); Mon, 8 Nov 2021 08:51:22 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:50612 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238013AbhKHNvV (ORCPT ); Mon, 8 Nov 2021 08:51:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=wJ+KFiLWXSd9Yn9CEeNsZPzYPyPhxqpWIbv+1zHqmxk=; b=rj G4BV9DFGE0jD9Fw+5Lc4bnd7zyJ2u1yBCjc7borAofsYd7g31Dv3BYCOw5MVBPQYf7UhQxnl5II06 ZFEKA8imfILSvCXPiLTS+U00pUlqDxkh/l9dSStH2iEEXLLOtRDgq4rCb7jeSsPpL0nyViV2kxAyQ E+JgYaeHSpAJENc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mk50f-00Ctqr-DH; Mon, 08 Nov 2021 14:48:29 +0100 Date: Mon, 8 Nov 2021 14:48:29 +0100 From: Andrew Lunn To: Ansuel Smith Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , 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 Subject: Re: [RFC PATCH 2/6] leds: permit to declare supported offload triggers Message-ID: References: <20211107175718.9151-1-ansuelsmth@gmail.com> <20211107175718.9151-3-ansuelsmth@gmail.com> <20211107230624.5251eccb@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 07, 2021 at 11:32:56PM +0100, Ansuel Smith wrote: > On Sun, Nov 07, 2021 at 11:06:24PM +0100, Marek Beh?n wrote: > > On Sun, 7 Nov 2021 18:57:14 +0100 > > Ansuel Smith wrote: > > > > > With LEDs that can be offload driven, permit to declare supported triggers > > > in the dts and add them to the cled struct to be used by the related > > > offload trigger. This is particurally useful for phy that have support > > > for HW blinking on tx/rx traffic or based on the speed link. > > > > > > Signed-off-by: Ansuel Smith > > > > NAK. The device-tree shouldn't define this, only the LED's function as > > designated by the manufacturer of the device. > > > > Marek > > Sure I will add a way to ask the led driver if the trigger is supported > and report it. Yes, you need some way for the PHY/MAC driver to enumerate what it can do. I've not looked at v2 yet... Andrew