Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp668047rdb; Fri, 22 Dec 2023 01:02:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYROZxujLmjw1Cntbf0hxhlLL40jOyAzBS1D2D4BmFnOFwzxTYP1b+wrieNcrXyJu6dbvu X-Received: by 2002:a05:6358:281e:b0:173:5cd:6094 with SMTP id k30-20020a056358281e00b0017305cd6094mr1039786rwb.34.1703235777950; Fri, 22 Dec 2023 01:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703235777; cv=none; d=google.com; s=arc-20160816; b=BkTNKrGjVPiD80sZXljIuaYaKfgreZdUi8KO8KrDFTDEpiPaQsF9foaYdE0UJ9vHA0 6YubLPZFV/KYIsUvu20ZOSfUkGvE5FisNTBSMDQ+Hv1/WqrobvWknRJwDpuSTg1W/Vft 2WnEzV0FPnMBkzBXXzh3+wwzWpUCWLKw5Pnmo/8udseWfyyf79LSV2rLGC05oS2C+yL8 S43WIMiygzAr2PL4r8tc/+fbzq/HE+pl7TrGW2dsTYTA4QwR1tNKURpLLHNncGVKqmro Hx2RlF12O4qw3uVvAptRI5GN0f5Cre8kgGtKBcoQ0emIqkYC0PPx1vBPt6IZywIHJWn6 hp9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qNs/d/m5HRR+Zs73s2mZ2qYKhdDpwKKnjFyOpsSszvs=; fh=HWg9oKqB7LxHITxa67XhlzqCYxmh79IST3cA6qdD/xw=; b=DS+nOKCt3DRkgMVR8/yXjdeCbLFz1PGA35ATxhzpMWUXedXP/evpBVZA2IJMKTv5n3 WkL0I9auyHUGpH50o2JJjCBX6KpHSC+ygICu6FVxxnD19qcjlZFs7bNA0czW06wJUOxe oy8M2Ybm9OPMKepg+foqfBVEjZqk9iBPYytUD8CcBe34IHre8emnQ+oM4BfwQMMRCBf0 8x8c/PRt2VjEZ8m15yDTWph5nKsND4Ej5D7XmjojT4OneUpmZHF5C8+chITKpP2mq1wa LUXL0lVqw8wHLcYL4wvsKqowqiMZovHwx7Du7rwfVt8FAdLwsQ/z0AfHxNMyCDb2osQt SKCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=GR7i7ZcI; spf=pass (google.com: domain of linux-kernel+bounces-9531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id by38-20020a056a0205a600b005c217868866si3115611pgb.507.2023.12.22.01.02.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:02:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=GR7i7ZcI; spf=pass (google.com: domain of linux-kernel+bounces-9531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B1D9282C03 for ; Fri, 22 Dec 2023 09:02:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 308D4FC09; Fri, 22 Dec 2023 09:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="GR7i7ZcI" X-Original-To: linux-kernel@vger.kernel.org Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD29AFBE4; Fri, 22 Dec 2023 09:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To: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=qNs/d/m5HRR+Zs73s2mZ2qYKhdDpwKKnjFyOpsSszvs=; b=GR7i7ZcIrd3uGAUV1jBE0Nd5RC zsn4OV+6/DoYOxgBUJORzdb8K+LwEZ9QkFdU3vc1W/Ob8frTwGew0SBoLEOkKJWvPEYDb5M/+n06/ qxuUku0EePid2Bw8MSxt/QL71rEizih999x8iYW4uk/jqykIYckeeAt8LfaT3qoT7Vvk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rGbQH-003ZXw-B3; Fri, 22 Dec 2023 10:02:25 +0100 Date: Fri, 22 Dec 2023 10:02:25 +0100 From: Andrew Lunn To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Christian Marangi , Pavel Machek , Lee Jones , Jakub Kicinski , Daniel Golle , "David S. Miller" , Li Zetao , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v5 1/2] leds: trigger: netdev: display only supported link speed attribute Message-ID: <626aedab-99b5-4fe1-a55e-4c7649a4e214@lunn.ch> References: <20231220224827.27667-1-ansuelsmth@gmail.com> <20231221100848.4a7da2df@dellmb> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231221100848.4a7da2df@dellmb> > I am also wondering if this sysfs ABI could be extended for multi-color > LEDs. > > For example: > echo green >link_1000 > echo yellow >link_100 > > Or something like that. But that is a completely different discussion. I've not looked at how the LED core code supports this. You do see bi-colour LEDs. They are basically two LEDs head to tail. You positively bias them and they are one colour, you negatively bias them and they are a second colour. The two colours are mutually exclusive. It is also possible to have two LEDs co-located. That should already supported, since you can control each LED independently. It would be good to describe your hardware. We can then figure out how they LED subsystem should support it. Andrew