commit | 9b994b4a074c5d1daea0e9d4eb83e0372a3337e5 | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Tue Jun 11 21:04:09 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 13 22:43:10 2019 -0700 |
tree | 9126a1698f41abb1748253371bf8af9277649e78 | |
parent | 6358f38c062d791ec1b617738f5c2de54f0ff6db [diff] |
r8169: let mdio read functions return -ETIMEDOUT In case of a timeout currently ~0 is returned. Callers often just check whether a certain bit is set and therefore may behave incorrectly. So let's return -ETIMEDOUT in case of a timeout. r8168_phy_ocp_read is used in r8168g_mdio_read only, therefore we can apply the same change. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>