diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-18 14:45:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 20:17:15 -0700 |
commit | c746053d275c8b6ff1d713addabf049c9c9a58fc (patch) | |
tree | 47c39fb3f0762bcb0452f78d70653c11cc0eb786 /include/linux/phy.h | |
parent | 439625a7726cebe3ba5eb68a6ac74ed30846a384 (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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 8c05d0fb5c00..abe318387331 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -388,6 +388,8 @@ enum phy_state { PHY_CABLETEST, }; +#define MDIO_MMD_NUM 32 + /** * struct phy_c45_device_ids - 802.3-c45 Device Identifiers * @devices_in_package: Bit vector of devices present. |