Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5005845rwl; Mon, 3 Apr 2023 12:55:44 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/aBUZfEYVo1cgq9n8zCV8glB0q4cs42f6olIsXkTETFC6sQGzSrYXTDMmEY/i3iQJRg0Q X-Received: by 2002:a17:902:ce8d:b0:1a2:1042:cadc with SMTP id f13-20020a170902ce8d00b001a21042cadcmr242008plg.18.1680551743544; Mon, 03 Apr 2023 12:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680551743; cv=none; d=google.com; s=arc-20160816; b=kOXOPcMtmiCICzJLvCh7ih0/X89kEybajkawHxUJ1JunXhGHRXu06GsQHS0gl1HQxs 5WGNRWfwMc2qQvKmcGtnaecsFC5RD6WouBJJMLx7b08CqKu1Bq8Zcosq75AZAcNyhFZi mYeSXi1m8G3La68/fo5Xm/Z1W/2N8EIeug5m1sPJMqhJQM/qK9WITgUIemRbhi6UReOV e3nlSPP0c0IFp3j5l9dYxKcnLuExAdq8pH2HfnuLwOo2J762cFk1S75CtmdcwH8AF5w3 LvEvQnpdtVydmHSv3sDjiaoC6DXWKw0Oz+9N2cvVxEACv/WPvCYZPdxDo9T+NgsvkLS3 qVAA== 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:dkim-signature; bh=fykVoMCfV1nx33PPt8DE784tGv/X2NEpQvm7pJbRM6M=; b=ce45FfiM70/Yavy/8r6IWIBnbf3j7DF3iY5gzpUZC3SGnWadQv7wSKf3yGexxX/2zM Ov48nD+T/65fd0tHirlQ11dNcLp9DZzNKFJURh1AS4gi30bWQq4r4EtMiJPd0zuKrTeU MqVXxpA4S8KSdAUNm67mgws9vNcwo+aPN/ERSOiSrG+DCS9Tuzd/zvhzWQKEF7IcQQWH 19YTUeh8M0exKQpoY/XW0NPv2gHNLxdLEsg7eDZVy9gxTYmWZWZ6UbYTgGOEIj/6zsWo YeqpvFPZNYZ2GjazIOUXurfS06eF6y9dzMzsyDDXvgeOESqbSGgfoz0mPukJJc5dLETP midg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=juEewWzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x71-20020a63864a000000b005139e0d2b5csi9037404pgd.487.2023.04.03.12.55.30; Mon, 03 Apr 2023 12:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=juEewWzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232609AbjDCTyP (ORCPT + 99 others); Mon, 3 Apr 2023 15:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232254AbjDCTyN (ORCPT ); Mon, 3 Apr 2023 15:54:13 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89A161FDA; Mon, 3 Apr 2023 12:54:12 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id DD0D41C0DFD; Mon, 3 Apr 2023 21:54:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1680551650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fykVoMCfV1nx33PPt8DE784tGv/X2NEpQvm7pJbRM6M=; b=juEewWzjR/oFjcMcyhikVgpbth86/4CzY4LjhmZYOiqcJ+5Be4T+2WDJeJBSHO4bPavBvk y+/DQog1H9zekTEiK2kzTiGyfrFiYFlzRITJwZC49aSofJp8dLsv0R37DWITFhzFJJaEu5 npoFwNyjVcf2waVYeKGbQdTBYGtyeoY= Date: Mon, 3 Apr 2023 21:54:10 +0200 From: Pavel Machek To: Andrew Lunn Cc: Christian Marangi , Lee Jones , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , John Crispin , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v6 16/16] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Message-ID: References: <20230327141031.11904-1-ansuelsmth@gmail.com> <20230327141031.11904-17-ansuelsmth@gmail.com> <2e5c6dfb-5f55-416f-a934-6fa3997783b7@lunn.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lPaKBUJ34nC7zHk1" Content-Disposition: inline In-Reply-To: <2e5c6dfb-5f55-416f-a934-6fa3997783b7@lunn.ch> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lPaKBUJ34nC7zHk1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > The WAN port of the 370-RD has a Marvell PHY, with one LED on > > > the front panel. List this LED in the device tree. > >=20 > > > @@ -135,6 +136,19 @@ &mdio { > > > pinctrl-names =3D "default"; > > > phy0: ethernet-phy@0 { > > > reg =3D <0>; > > > + leds { > > > + #address-cells =3D <1>; > > > + #size-cells =3D <0>; > > > + > > > + led@0 { > > > + reg =3D <0>; > > > + label =3D "WAN"; > > > + color =3D ; > > > + function =3D LED_FUNCTION_LAN; > > > + function-enumerator =3D <1>; > > > + linux,default-trigger =3D "netdev"; > > > + }; > >=20 > > /sys/class/leds/WAN is not acceptable. >=20 > As i said here, that is not what it gets called: >=20 > https://lore.kernel.org/netdev/aa2d0a8b-b98b-4821-9413-158be578e8e0@lunn.= ch/T/#m6c72bd355df3fcf8babc0d01dd6bf2697d069407 >=20 > > It can be found in /sys/class/leds/f1072004.mdio-mii:00:WAN. But when > > we come to using it for ledtrig-netdev, the user is more likely to foll= ow > > /sys/class/net/eth0/phydev/leds/f1072004.mdio-mii\:00\:WAN/ >=20 > Is that acceptable? >=20 > What are the acceptance criteria? Acceptance criteria would be "consistent with documentation and with other similar users". If the LED is really white, it should be f1072004.mdio-mii\:white\:WAN, but you probably want f1072004.mdio-mii\:white\:LAN (or :activity), as discussed elsewhere in the= thread. Documentation is in Documentation/leds/well-known-leds.txt , so you should probably add a new section about networking, and explain naming scheme for network activity LEDs. When next users appear, I'll point them to the documentation. Does that sound ok? Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --lPaKBUJ34nC7zHk1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZCsu4gAKCRAw5/Bqldv6 8h78AJ9AUnGfeFk8XU7IuIMt4pYID4EtCACgncPOn1FIVY/7WnPw/CXAoZkbNu0= =zXBp -----END PGP SIGNATURE----- --lPaKBUJ34nC7zHk1--