diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-05-26 13:50:59 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-03 18:08:15 +0100 |
commit | a60fac31b859b97cbbf5860902929e541dd47869 (patch) | |
tree | f76961d48140bec06d73137c476a475d7a721a20 /include | |
parent | 881341347633c431e336b9b027c41e5c8ed1944f (diff) |
net: phy: read MMD ID from all present MMDs
Expand the device_ids[] array to allow all MMD IDs to be read rather
than just the first 8 MMDs, but only read the ID if the MDIO_STAT2
register reports that a device really is present here for these new
devices to maintain compatibility with our current behaviour.
88X3310 PHY vendor MMDs do are marked as present in the
devices_in_package, but do not contain IEE 802.3 compatible register
sets in their lower space. This avoids reading incorrect values as MMD
identifiers.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 5cce7c1cd231..b79e1ced3dd1 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -344,7 +344,7 @@ enum phy_state { struct phy_c45_device_ids { u32 devices_in_package; u32 mmds_present; - u32 device_ids[8]; + u32 device_ids[MDIO_MMD_NUM]; }; struct macsec_context; |