diff options
author | Andrew Lunn <andrew@lunn.ch> | 2024-02-04 17:14:14 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-07 13:47:07 +0000 |
commit | 17b447539408a0feff81637c7cc1c4c68efa73c0 (patch) | |
tree | 6794309990ad7ddc60b73eb92d26439acf902932 /drivers/net/ethernet/intel/igc/igc_main.c | |
parent | 56b93cd358b304b2d1945c0330dffe8f872bc0d3 (diff) |
net: phy: c45 scanning: Don't consider -ENODEV fatal
When scanning the MDIO bus for C22 devices, the driver returning
-ENODEV is not considered fatal, it just indicates the MDIO bus master
knows there is no device at that address, maybe because of hardware
limitation.
Make the C45 scan code act on -ENODEV the same way, to make C22 and
C45 more uniform.
It is expected all reads for a given address will return -ENODEV, so
within get_phy_c45_ids() only the first place a read occurs has been
changed.
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions