diff options
author | Nishanth Menon <nm@ti.com> | 2023-04-14 17:06:44 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-05-05 17:48:44 -0400 |
commit | f1a63f7181784e6de92a9759e7d61e5ce9c00582 (patch) | |
tree | 39217b5b04919fc0a0dea0b61953281e8f6f7973 /include/phy.h | |
parent | 0207403eebec7f0918d84003666c30c4d0067197 (diff) | |
download | u-boot-f1a63f7181784e6de92a9759e7d61e5ce9c00582.zip u-boot-f1a63f7181784e6de92a9759e7d61e5ce9c00582.tar.gz u-boot-f1a63f7181784e6de92a9759e7d61e5ce9c00582.tar.bz2 |
net: phy: Drop phy_interface_is_sgmii
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes
with Linux") reordered the enum definitions. This caused the range of
enums that this api was checking to go bad.
There aren't anymore users of phy_interface_is_sgmii, so, just drop
it. Also the protocols are so very different that it makes no sense to
provide a helper wrapper in the hope of reuse for phy drivers.
Reported-by: Tom Rini <trini@konsulko.com>
Suggested-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Suggested-by: Marek BehĂșn <kabel@kernel.org>
Link: https://lore.kernel.org/all/20230414103852.38705065@dellmb/
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'include/phy.h')
-rw-r--r-- | include/phy.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/phy.h b/include/phy.h index a837fed..cb87d1d 100644 --- a/include/phy.h +++ b/include/phy.h @@ -365,18 +365,6 @@ static inline bool phy_interface_is_rgmii(struct phy_device *phydev) phydev->interface <= PHY_INTERFACE_MODE_RGMII_TXID; } -/** - * phy_interface_is_sgmii - Convenience function for testing if a PHY interface - * is SGMII (all variants) - * @phydev: the phy_device struct - * @return: true if MII bus is SGMII or false if it is not - */ -static inline bool phy_interface_is_sgmii(struct phy_device *phydev) -{ - return phydev->interface >= PHY_INTERFACE_MODE_SGMII && - phydev->interface <= PHY_INTERFACE_MODE_QSGMII; -} - bool phy_interface_is_ncsi(void); /* PHY UIDs for various PHYs that are referenced in external code */ |