]> www.infradead.org Git - users/hch/misc.git/commit
net: dsa: mv88e6xxx: Return -ENODEV when C45 not supported
authorAndrew Lunn <andrew@lunn.ch>
Sun, 4 Feb 2024 23:14:15 +0000 (17:14 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Feb 2024 13:47:07 +0000 (13:47 +0000)
commit88b3934e3f31e15b40896aa8ebb0a8040d150c1c
tree248220afd188134d8f429004bc3dde7b375a3cef
parent17b447539408a0feff81637c7cc1c4c68efa73c0
net: dsa: mv88e6xxx: Return -ENODEV when C45 not supported

MDIO bus drivers can return -ENODEV when they know the bus does not
have a device at the given address, e.g. because of hardware
limitation. One such limitation is that the bus does not support C45
at all. This is more efficient than returning 0xffff, since it
immediately stops the probing on the given address, where as further
reads can be made when 0xffff is returned.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c