]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom-sgmii-eth: add .set_mode() and .validate() methods
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 26 Feb 2026 23:09:27 +0000 (23:09 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 Mar 2026 23:41:38 +0000 (15:41 -0800)
commit4ff5801f45b494ad8251a16ec06c9f303ed3b9a0
treed43cb119675a2ee629f1c84a502e299961a7b60e
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
phy: qcom-sgmii-eth: add .set_mode() and .validate() methods

qcom-sgmii-eth is an Ethernet SerDes supporting only Ethernet mode
using SGMII, 1000BASE-X and 2500BASE-X.

Add an implementation of the .set_mode() method, which can be used
instead of or as well as the .set_speed() method. The Ethernet
interface modes mentioned above all have a fixed data rate, so
setting the mode is sufficient to fully specify the operating
parameters.

Add an implementation of the .validate() method, which will be
necessary to allow discovery of the SerDes capabilities for platform
independent SerDes support in the stmmac network driver.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Tested-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vvkU3-0000000AuP2-0hu3@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/phy/qualcomm/phy-qcom-sgmii-eth.c