]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit5db5ea995fc2fa89fdef61ef3a658cbb41a24222
tree40a03d361a142c94297fcd3c9471857b760ea27b
parent6f24e159919fb13733d186bf80c2c1b4f4f49db8
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