diff options
author | David S. Miller <[email protected]> | 2024-02-07 13:47:07 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-02-07 13:47:07 +0000 |
commit | 1e8f1477aba53fa900f1c318fe675f8f945a4781 (patch) | |
tree | 248220afd188134d8f429004bc3dde7b375a3cef /drivers/net/ethernet/intel/igc/igc_main.c | |
parent | 56b93cd358b304b2d1945c0330dffe8f872bc0d3 (diff) | |
parent | 88b3934e3f31e15b40896aa8ebb0a8040d150c1c (diff) |
Merge branch 'net-phy-c22-c45-enumeration'
From: Andrew Lunn <[email protected]>
To: Heiner Kallweit <[email protected]>,
Russell King <[email protected]>,
"David S. Miller" <[email protected]>,
Eric Dumazet <[email protected]>,
Jakub Kicinski <[email protected]>,
Paolo Abeni <[email protected]>,
Florian Fainelli <[email protected]>,
Vladimir Oltean <[email protected]>
Cc: [email protected],
Tim Menninger <[email protected]>,
Andrew Lunn <[email protected]>
====================
net: Unify C22 and C45 error handling during bus enumeration
When enumerating an MDIO bus, an MDIO bus driver can return -ENODEV to
a C22 read transaction to indicate there is no device at that address
on the bus. Enumeration will then continue with the next address on
the bus.
Modify C45 enumeration so that it also accepts -ENODEV and moves to
the next address on the bus, rather than consider -ENODEV as a fatal
error.
Convert the mv88e6xxx driver to return -ENODEV rather than 0xffff on
read for families which do not support C45 bus transactions. This is
more efficient, since enumeration will scan multiple devices at one
address when 0xffff is returned, where as -EONDEV immediately jumps to
the next address on the bus.
====================
Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions