Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 7873642189F for ; Thu, 5 Feb 2026 14:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770303384; cv=none; b=r7wrl0n6+2+c8R92MbvAfxade3a8XJNWqfBxe3zKdaWstDEQ/+MkTs4NmlvYMA4UQzq+FWkvAzenD0OQy9D474KQNpjARra0RxgoE4MUcui+WjgT8sGoapq0dxOVY5RwW3zAMLnCZYljj+WObztq1yIz1Ip8L00+eooIKf2eAW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770303384; c=relaxed/simple; bh=uFMjoq1jf8NjHuYjvTkjNl08EvZxWVmk8ktEv4WW5LQ=; h=From:To:Cc:Subject:MIME-Version:Content-Disposition:Content-Type: Message-Id:Date; b=fdOgXpW4WhJHczNoFOd2XthKqwBKrCIpYJ+AibXSiNvX/LdR1g0S4pX/ppkyVnyYAil8VaoVxilAQgqzwciGXG6pN46Qy/6YZGtU+MZ65IRFAXYuDjBC1flZCKEsgEul6LHMHEB2NZlztSWHK63D3Bq1wD2jgyEbZJ1oonN/oNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=vikpDgWq; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="vikpDgWq" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FIu6yjrjJWFFr5/fXZO+yWGMg6ojD/x4VIPzUupvXpE=; b=vikpDgWq49zmiR0/KJL8cp/3w5 rfqkeMLeqvptf+XbuwmQ3Jf5LYkx83lk3zE+zpmIaEZYdYHjYBo9FW7XoVyKy3opTn4gdcJwn0Skd Nkps4uGAJuOSrnIL2w+4plOyvCibdz413520ZP82sMlrNzuL9jIrGWO3Tb/iqzQLqZlIL0BbeJ5/r cJlvF532iceGQi/fAJ93qykvnBtVJlG/4jttOHTNRfz0agYSWUmn8+VFmhbm3/1feLUbshweezFkJ AoHtWZ3+UoltaHhUa0UKzL3lje/Yj1+VVpTm+IPoYq0nnp0JSVcBsUhu8qgMzT0qg29hh/7yR/Ljt iYeda5/g==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:52036 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vo0mG-000000007LD-06MB; Thu, 05 Feb 2026 14:56:16 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.98.2) (envelope-from ) id 1vo0mF-00000007kbg-1OeA; Thu, 05 Feb 2026 14:56:15 +0000 From: "Russell King (Oracle)" To: Vinod Koul , Neil Armstrong Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH net-next] doc: generic phy: update generic PHY documentation Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: Sender: Russell King Date: Thu, 05 Feb 2026 14:56:15 +0000 Update the generic PHY documentation as a result of the discussion for the s32g submission. Link: https://lore.kernel.org/r/aXtvDn_-pCuKPrnf@vaman Signed-off-by: Russell King (Oracle) --- I didn't get any replies to my follow-up question to Vinod: Please also indicate in the documentation whether changing the submode of the serdes (particularly for ethernet) is permitted without doing a phy_power_down()..phy_power_up() dance around the phy_set_mode_ext() call. I also didn't get any response to: For drivers such as stmmac, it will be important that details such as whether phy_est_mode*() can be called with the PHY powered on are riveted down and not left up to the generic PHY driver author - without that, generic PHYs basically aren't usable from SoC/platform independent code, and stmmac has bazillions of platform specific glue already because of (a) bad code structuring and (b) lack of generalisation through standardised interfaces that abstract platform differences. I want to be able for core stmmac code, or even phylink code (which is even more platform generic) to be able to make use of generic PHY stuff, but if the calls that can be made into generic PHY are platform dependent, that is a blocking issue against that, and makes me question why we have the generic PHY subsystem... it's not very generic if it exposes the differences of each implementation to users of its interfaces. Documentation/driver-api/phy/phy.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/driver-api/phy/phy.rst b/Documentation/driver-api/phy/phy.rst index 719a2b3fd2ab..cf73e4fb0951 100644 --- a/Documentation/driver-api/phy/phy.rst +++ b/Documentation/driver-api/phy/phy.rst @@ -142,6 +142,7 @@ Order of API calls [devm_][of_]phy_get() phy_init() + [phy_set_mode[_ext]()] phy_power_on() [phy_set_mode[_ext]()] ... @@ -154,7 +155,7 @@ but controllers should always call these functions to be compatible with other PHYs. Some PHYs may require :c:func:`phy_set_mode `, while others may use a default mode (typically configured via devicetree or other firmware). For compatibility, you should always call this function if you know -what mode you will be using. Generally, this function should be called after +what mode you will be using. Generally, this function should be called before :c:func:`phy_power_on`, although some PHY drivers may allow it at any time. Releasing a reference to the PHY -- 2.47.3