Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8065762rdb; Thu, 4 Jan 2024 18:26:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTqkzYt3eXzfrfz0byLqUOc1S/iMTADnrSIK7mpRGN+GHhzlH1CBlvh/JE7zcvVQgt/1oo X-Received: by 2002:a05:6e02:16cf:b0:35d:5b00:e9be with SMTP id 15-20020a056e0216cf00b0035d5b00e9bemr1711288ilx.8.1704421560519; Thu, 04 Jan 2024 18:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704421560; cv=none; d=google.com; s=arc-20160816; b=xeQTSdGA7BJrbFYSzCgMJ7CKYhCfYNJaX++1EA6sBTcoGQnr+sl42anA7Vkaa327Rv yEnAsLa4KcG/oJoZ8p5GAhKy4O8TxzVGJNpLJ3Ovi1Y6r3CdMH4Va3VZWmP/sSDZJZIq DANVBQIMwIJoKz8pBXxm3Vgd2PMfWKWNRu7IHMlL7n0t/zs5t6SZ0ZezRk7ZJigkXpH8 u2Vyv6lozdg6QdCdrvF/zZt26oWk/hjf0g1dJTtRafhErpSHqMT4eF93NGcJhBfLuOF7 SHbwQlbBo2em4U5UqhU94Hu2UnTbLZySfqHNqNuT6+iz23YBZPU5/UmXC1MeAdgpuFJx h1LQ== 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=9Fm13D6HkTMzEZBlOarDnIVaiSDDHq61aKHqbRpbK1E=; fh=f2530uQuFU6gTjydPfA47iMPP96/zmYeGuzVqpEDVHE=; b=omGAq7qanY8yJFzzLC2nhoBcXD+K4nE6KI5ADLzHPMDNV36tcrCC6osbIaBZE3zZNp Y5lYqf6XeX7cWIRSSeq2YTEUF2OhKRI1SYJki/rtt6A6NBjKajAHOcolWCiiKuaK5d7C Lmy+nWw+5/ZTa14o7OGnPrbm7B/rB0/3qCHfoA57P7z2XOguXtK90qP19YcA9/VKkDkQ k8mDd4ydJ+jcpIYEdo+AFRnA2bYWHAdN2occK7c6h+v8QndoyWR2uRoyo9Hd1E0vhRvX R7cDy4ciquUpAVG+hFODaenS/BpqBuNw4vs8dLtr2jSjQ1wqRiMVTqIUj1XOMenlvY8S ovpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=o4GsTItl; spf=pass (google.com: domain of linux-kernel+bounces-17418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m15-20020a6562cf000000b005ca4098bf5fsi513809pgv.620.2024.01.04.18.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 18:26:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=o4GsTItl; spf=pass (google.com: domain of linux-kernel+bounces-17418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17418-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 695E7B2294B for ; Fri, 5 Jan 2024 02:25:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28FFF210D; Fri, 5 Jan 2024 02:25:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="o4GsTItl" 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 01CC31FBF; Fri, 5 Jan 2024 02:25:46 +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=9Fm13D6HkTMzEZBlOarDnIVaiSDDHq61aKHqbRpbK1E=; b=o4GsTItlbg+grt7he924K/ku2I 5+z0tWqqFd2nbLjRcJ8orIs0aKlySKR+eL+k4wUwmoF4/O5x2EniSQ2Qga17JV0zNUmjgPDIaH1Ee s0V1ZkV/FPJ+h0CtIu6Pel8NQDLjdCDPNaPuqRdEaDINZtPui0O9ZNztJI6M/ncFOrcE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rLZtq-004Pl0-14; Fri, 05 Jan 2024 03:25:30 +0100 Date: Fri, 5 Jan 2024 03:25:30 +0100 From: Andrew Lunn To: Christian Marangi Cc: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Jacek Anaszewski , =?iso-8859-1?Q?Fern=E1ndez?= Rojas , Sven Schwermer , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [net-next PATCH v8 3/5] net: phy: add support for PHY LEDs polarity modes Message-ID: <957df01b-bb92-4f8a-9f2b-aacd3de1208d@lunn.ch> References: <20240104110114.2020-1-ansuelsmth@gmail.com> <20240104110114.2020-4-ansuelsmth@gmail.com> <47f18def-d34f-4224-9de2-6e0ae7122a52@lunn.ch> <6597286c.050a0220.4684a.182e@mx.google.com> 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: <6597286c.050a0220.4684a.182e@mx.google.com> > > > + * @dev: PHY device which has the LED > > > + * @index: Which LED of the PHY device or -1 > > > + * @modes: bitmap of LED polarity modes > > > + * > > > + * Configure LED with all the required polarity modes in @modes > > > + * to make it correctly turn ON or OFF. > > > > index == -1 should be explained. > > > > If you are referring to the special way of setting the LED globally, > that is not a thing anymore. Rob pointed out that having the double > reference in DT is problematic and PHY driver should handle that > internally. So it sounds like you need to change > > > + * @index: Which LED of the PHY device or -1 to remove the 'or -1' Andrew