From: David S. Miller Date: Wed, 7 Feb 2024 13:47:07 +0000 (+0000) Subject: Merge branch 'net-phy-c22-c45-enumeration' X-Git-Tag: v6.9-rc1~159^2~328 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e8f1477aba53fa900f1c318fe675f8f945a4781;p=thirdparty%2Flinux.git Merge branch 'net-phy-c22-c45-enumeration' From: Andrew Lunn To: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Vladimir Oltean Cc: netdev@vger.kernel.org, Tim Menninger , Andrew Lunn ==================== 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 Signed-off-by: David S. Miller --- 1e8f1477aba53fa900f1c318fe675f8f945a4781