Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp82413rwl; Thu, 23 Mar 2023 13:01:54 -0700 (PDT) X-Google-Smtp-Source: AKy350b513iG1xcjuxbh4pZs6pFbFtfvFczuoX46nk4hmhM9V2p/mAkofH4yhiGccd/LAXvgCcYR X-Received: by 2002:a62:1846:0:b0:622:d84e:846c with SMTP id 67-20020a621846000000b00622d84e846cmr627036pfy.10.1679601714414; Thu, 23 Mar 2023 13:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679601714; cv=none; d=google.com; s=arc-20160816; b=MKhm6N1+ahB3IqALOKjirdNALM9QGwPlrBMO0pNhKyARkZIq195HCYneW8DqMktR3r opw7J9pjFPdMzu4QPSnMpJZr51COe7ijfM3bJV+/CIxy+JRZuxSWqpDpd+sKHFe0yqm6 PuF5NChJdSQq4/gX5w8tfAXgFejnLpAo+NEb3peEB5WMFTbwaBM0UpBvonFdxTqOWpYN pk5M0XT4ZYABBwMJpbyWt0mRDMP8polFQpDdS9e5OJnXAcOr0GorUzOxvAbAqSXTMw0t UQ5x7b56H3eyLhVGI9WJH4yN95n5o9zZsxHj7g6jTy+MtCaU69AZMUPiPDc2lqHEDv6D Banw== 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=oc/iUo0lIBe+FS5WVSyueoHdxi6tsJxX0Ez4lN9w4K8=; b=tLrt6BoBn+i4Ium4VN8GcEd8Ng27lrDq3TV1Xt3mRKAm9QhUkxXj0KllfSHccC8qcj a31ZiM7MfcnO9kllqPnQYXl0oaiVbbFMZJfs7cuN3XaCdaU+KYSGJcu1QpcToPUfuXpc vVy0D40hCoipU54NvCTUckEAb4fwfmP06qflBt8vdcVXT0gCW4MHcJB70FQqJOqEjev6 eTc9ZhKEuJzhOlwpADFqDBkVvzCNxPhR5A8bhHwKbK711NJGwK+QRdv6a/Lqnyo1zBQh VqpXDk4P9962ybyRvWBjD97XCwmyOFCSxNm/+MmrpXC4zRIM7MyfO1+EPMUpGUz/ZVQb BexA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yVdVBQAO; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a63fb44000000b005074cff89b9si18136947pgj.250.2023.03.23.13.01.31; Thu, 23 Mar 2023 13:01:54 -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=@lunn.ch header.s=20171124 header.b=yVdVBQAO; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231418AbjCWTxV (ORCPT + 99 others); Thu, 23 Mar 2023 15:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjCWTxT (ORCPT ); Thu, 23 Mar 2023 15:53:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E29C14D; Thu, 23 Mar 2023 12:53:17 -0700 (PDT) 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=oc/iUo0lIBe+FS5WVSyueoHdxi6tsJxX0Ez4lN9w4K8=; b=yVdVBQAOM+Q4pyNSb2udc1HKJ0 PJPKMWoeesWKoYQ3VsCuDYywal3A5xt53IIOwb0AIaGSynK+56rNvANbWobJtF7/x66vIobFT2hnO XXfGKYN9+lKEFnxV5Gsls/N5g1xnsjwOQjKVOquRy9QutcLVLjpeDXtWxpUVzxtbb6t4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pfQze-008EUF-F2; Thu, 23 Mar 2023 20:53:02 +0100 Date: Thu, 23 Mar 2023 20:53:02 +0100 From: Andrew Lunn To: Pavel Machek Cc: Christian Marangi , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiner Kallweit , Russell King , Gregory Clement , Sebastian Hesselbarth , Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [net-next PATCH v5 15/15] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Message-ID: References: <20230319191814.22067-1-ansuelsmth@gmail.com> <20230319191814.22067-16-ansuelsmth@gmail.com> <318f65ef-fd63-446d-bd08-1ba51b1d1f72@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 > > Hi Pavel > > > > It is just a plain boring LED, so it will look like all other LEDs. > > There is nothing special here. > > Well, AFAICT it will end up as /sys/class/leds/WAN, which is really > not what we want. Why not? It is just a plain boring LED. It can be used for anything, heartbeat, panic SOS in Morse code, shift lock, disk activity. Any of the triggers can be applied to it. 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 follow /sys/class/net/eth0/phydev/leds/f1072004.mdio-mii\:00\:WAN/ > (Plus the netdev trigger should be tested; we'll > need some kind of link to the ethernet device if we want this to work > on multi-ethernet systems). Since this is a plain boring LED, it could actually blink for any netdev. When we get to offloading blinking to hardware, then things change, we need to check the netdev which is configured in the ledtrig-netdev is the same one the PHY is associated to. But i have a patchset for that which will appear later. > Should documentation be added to Documentation/leds/well-known-leds.txt ? Saying what. That there might be LEDs in your RJ45 connector, which can be used for anything which is supported by an Linux LED trigger? Andrew