summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-05-26 13:50:59 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-08-03 21:42:43 +0100
commitdb82c4432ea7eebe60080665a36c168c4c2fa2cc (patch)
tree6f2b3ab5ed3b58e1461148e659d01c46ae850fc3 /drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
parent6539a57ca6a5a770f3b2cc709cb7227d0c175ea3 (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 'drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c')
0 files changed, 0 insertions, 0 deletions