diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2023-12-12 06:41:43 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-13 18:01:07 -0800 |
commit | 0c476157085fe2ad13b9bec70ea672e86647fa1a (patch) | |
tree | 568b8aca0fdde6f68c3499def93191257f215bc5 /include | |
parent | a25ebbf332fd2d948937c6ef016e66db62e1abf2 (diff) | |
download | linux-stable-0c476157085fe2ad13b9bec70ea672e86647fa1a.tar.gz linux-stable-0c476157085fe2ad13b9bec70ea672e86647fa1a.tar.bz2 linux-stable-0c476157085fe2ad13b9bec70ea672e86647fa1a.zip |
net: phy: c45: add genphy_c45_pma_read_ext_abilities() function
Move part of the genphy_c45_pma_read_abilities() code to a separate
function.
Some PHYs do not implement PMA/PMD status 2 register (Register 1.8) but
do implement PMA/PMD extended ability register (Register 1.11). To make
use of it, we need to be able to access this part of code separately.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20231212054144.87527-2-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 6e7ebcc50b85..dbb5e13e3e1b 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1866,6 +1866,7 @@ int genphy_c45_an_config_aneg(struct phy_device *phydev); int genphy_c45_an_disable_aneg(struct phy_device *phydev); int genphy_c45_read_mdix(struct phy_device *phydev); int genphy_c45_pma_read_abilities(struct phy_device *phydev); +int genphy_c45_pma_read_ext_abilities(struct phy_device *phydev); int genphy_c45_pma_baset1_read_abilities(struct phy_device *phydev); int genphy_c45_read_eee_abilities(struct phy_device *phydev); int genphy_c45_pma_baset1_read_master_slave(struct phy_device *phydev); |