diff options
author | Alex Marginean | 2020-01-09 10:50:05 +0200 |
---|---|---|
committer | Joe Hershberger | 2020-03-09 18:11:25 -0500 |
commit | 9810489ca80f22b548590b7926c211fed46ce457 (patch) | |
tree | 7ca54d020531a5126488e5bce1a92a518577936c /include/phy.h | |
parent | a44ee246c570deb9190214d0711057a86b0f6a86 (diff) |
net: phy: add XFI, USXGMII types to is_10g_interface() helper
The helper is used to reset PHYs on connect and it determines the clause
to use (C22/C45) based on interface type. This fixes 'PHY reset timed out'
warnings in console for USXGMII/XFI PHYs.
Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/phy.h')
-rw-r--r-- | include/phy.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/phy.h b/include/phy.h index edc702a1f76..b5de14cbfc2 100644 --- a/include/phy.h +++ b/include/phy.h @@ -260,10 +260,15 @@ static inline int phy_write_mmd(struct phy_device *phydev, int devad, #ifdef CONFIG_PHYLIB_10G extern struct phy_driver gen10g_driver; -/* For now, XGMII is the only 10G interface */ +/* + * List all 10G interfaces here, the assumption being that PHYs on these + * interfaces are C45 + */ static inline int is_10g_interface(phy_interface_t interface) { - return interface == PHY_INTERFACE_MODE_XGMII; + return interface == PHY_INTERFACE_MODE_XGMII || + interface == PHY_INTERFACE_MODE_USXGMII || + interface == PHY_INTERFACE_MODE_XFI; } #endif |