net: phy: Add is_on_sfp_module flag and phy_on_sfp helper
authorRobert Hancock <robert.hancock@calian.com>
Tue, 16 Feb 2021 22:54:53 +0000 (16:54 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 23:23:23 +0000 (15:23 -0800)
commitb834489bceccc64641684eee5e93275cdf5f465b
tree863d8f09dc8c1fbb07388ae885c4b78105051360
parent3afd0218992a8d1398e9791d6c2edd4c948ae7ee
net: phy: Add is_on_sfp_module flag and phy_on_sfp helper

Add a flag and helper function to indicate that a PHY device is part of
an SFP module, which is set on attach. This can be used by PHY drivers
to handle SFP-specific quirks or behavior.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h