Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1405746pxb; Fri, 21 Jan 2022 17:54:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVH0VsInV88M3M+6ws3gB90NAa9uwrldHYSoN4EuhzH/AVzJkmo8E8NCf468i7QLr2pFR4 X-Received: by 2002:a05:6a00:114d:b0:4c4:3df:edf8 with SMTP id b13-20020a056a00114d00b004c403dfedf8mr6060279pfm.54.1642816457826; Fri, 21 Jan 2022 17:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816457; cv=none; d=google.com; s=arc-20160816; b=GJhOPLeMhZcrtFBw7covDhbvU5WeIaxJAYkmsRpf1TEkVfwIK4JWGLu0UeWVrKrHE6 wo0u3jgW0DG2I6CQ2PiZBiEOJ2RjSqz3RbrQ5CxcryeaKNcbGNmiG6hNeQxqbKMx7fXI D3TpYl14euB2oZDBAe9oRdNGWCAxdH2UZMJ+SQY8QquXjfRsT/aTzRz6YclPvtxjmimZ g7rDs2icmqjdjPSS7XihZaGCBuHhwfBO+J/VGrj631Eii9p9RF4pVN2r79bFNzI+QIp+ 2qvX+evr8RNUE4+AywnlqZDJ/IrafAptACZZI8BKdcnEP9t2UouOIFWwC7lzRQNpBZiw c8fQ== 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=L37WcsUefj8Jz5AzuxcgPxVzGeBfExcEj5ygi97jhK0=; b=ru3xVnTKRzLeTZ3CFBQ+VPrsMqzMrFim+OTMC4ex4x5to+03DtWWPgf/qSt0QAhjee TDIpSKb1s1jOha10KJqOp0JL8sRsoUgSrTTEymhD1A6O4Fu0y2bZmXE9DAaxC59BtCa9 7Hhyi+c628+80IplZ6QM3Rvb8Q5DI7VEtI8fxYP4Gn7tu0M3RPGFYJ15JWtIpGyCfb9h +f4YJytEEm+8HR45opSLw05pLle51p5/BzPP3TGXGwQtF/10P8MH6H/QWk0cClqPvUVV WOovHwqV0msIMOeCC7Y+0VFQUjcV492rx++WeF1E2Fd6zsHw8rkrG3spL3+YCVxC8hjx ng6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CJPqh6ej; 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 qe8si13944319pjb.41.2022.01.21.17.54.06; Fri, 21 Jan 2022 17:54:17 -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=CJPqh6ej; 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 S1351264AbiAUPPu (ORCPT + 99 others); Fri, 21 Jan 2022 10:15:50 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:47922 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351244AbiAUPPt (ORCPT ); Fri, 21 Jan 2022 10:15:49 -0500 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=L37WcsUefj8Jz5AzuxcgPxVzGeBfExcEj5ygi97jhK0=; b=CJPqh6ejMdHcFBW82NcTFBVRbG 6zyWkx7zY95Z35HkMTUWEgzew8LEswjg4AG1MVIrJmllfpcjEM8bpivQAAkRPP9aDGXZrhqub5Uc/ vSBbkrXbS1UHMW5zUwhZIg+yzVZxoWTJdEmc9fBDNDcxSRWGsCnbqfwS5j2CZCrlPzA8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nAvdh-0026Fs-5B; Fri, 21 Jan 2022 16:15:45 +0100 Date: Fri, 21 Jan 2022 16:15:45 +0100 From: Andrew Lunn To: Kai-Heng Feng Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: phy: marvell: Honor phy LED set by system firmware on a Dell hardware Message-ID: References: <20220120051929.1625791-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > They are similar to what DT has, but expressed in an ACPI way. DT has > > been used with PHY drivers for a long time, but ACPI is new. The ACPI > > standard also says nothing about PHYs. So Linux has defined its own > > properties, which we expect all ACPI machine to use. According to the > > ACPI maintainers, this is within the ACPI standard. Maybe at some > > point somebody will submit the current definitions to the standards > > body for approval, or maybe the standard will do something completely > > different, but for the moment, this is what we have, and what you > > should use. > > Right, so we can add a new property, document it, and just use it? Yes. So long as you follow the scheme documented there, cleanly integrate it into the code as needed, you can add a new property. > Maybe others will use the new property once we set the precedence? Yes, which is why i keep saying you need to think of the general case, not your specific machine. > How about what Heiner proposed? Maybe we should leave the LED as is, > and restore it on system resume? I don't think we can change the current code because it will cause regressions. The LEDs probably work on some boards because of the current code. At some point in the future, we hope to be able to control the PHY LEDs via /sys/class/LEDs. But until then, telling the PHY driver to not touch the LED configuration seems a reasonable request. Andrew