summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-05-26 13:03:11 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-06-03 18:08:11 +0100
commit1e2479973d2932d19310a71db98fd897c996378e (patch)
treedb9bf9e77776c0c38ee14c326069e8ba7de1c947 /include
parentdb726b2f96e99f6619270932c60ca050fc265e6e (diff)
net: phy: add support for probing MMDs >= 8 for devices-in-package
Add support for probing MMDs above 7 for a valid devices-in-package specifier, but only probe the vendor MMDs for this if they also report that there the device is present in status register 2. This avoids issues where the MMD is implemented, but does not provide IEEE 802.3 compliant registers (such as the MV88X3310 PHY.) Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 08a41340d88a..5cf9120c9d54 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -333,6 +333,8 @@ enum phy_state {
PHY_NOLINK,
};
+#define MDIO_MMD_NUM 32
+
/**
* struct phy_c45_device_ids - 802.3-c45 Device Identifiers
* @devices_in_package: Bit vector of devices present.