]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Add helpers to determine if PHY driver is generic
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Jan 2019 23:09:35 +0000 (15:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 19:33:17 +0000 (11:33 -0800)
commitc660c0668b03078eac45a90682edde8c3910d527
tree40a03d361a142c94297fcd3c9471857b760ea27b
parent71137e1c80a9672cbcb3a6cac64c356e39511b2a
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>
drivers/net/phy/phy_device.c
include/linux/phy.h