mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
net: phy: Add helpers to determine if PHY driver is generic
We are already checking in phy_detach() that the PHY driver is of generic kind (1G or 10G) and we are going to make use of that in the SFP layer as well for 1000BaseT SFP modules, so expose helper functions to return that information. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6f24e15991
commit
5db5ea995f
2 changed files with 35 additions and 2 deletions
|
@ -1183,4 +1183,7 @@ module_exit(phy_module_exit)
|
|||
#define module_phy_driver(__phy_drivers) \
|
||||
phy_module_driver(__phy_drivers, ARRAY_SIZE(__phy_drivers))
|
||||
|
||||
bool phy_driver_is_genphy(struct phy_device *phydev);
|
||||
bool phy_driver_is_genphy_10g(struct phy_device *phydev);
|
||||
|
||||
#endif /* __PHY_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue