diff options
author | 2024-12-09 14:07:49 +0100 | |
---|---|---|
committer | 2024-12-10 18:50:58 -0800 | |
commit | 21fff45a6cc1b5fceeedc5f6e2ccb118d4c19063 (patch) | |
tree | 33e863eda285f54b26f220d19744bf084d6c93d4 /lib/packing_test.c | |
parent | net: usb: lan78xx: Fix return value handling in lan78xx_set_features (diff) | |
download | wireguard-linux-21fff45a6cc1b5fceeedc5f6e2ccb118d4c19063.tar.xz wireguard-linux-21fff45a6cc1b5fceeedc5f6e2ccb118d4c19063.zip |
net: usb: lan78xx: Improve error handling in lan78xx_phy_wait_not_busy
Update `lan78xx_phy_wait_not_busy` to forward errors from
`lan78xx_read_reg` instead of overwriting them with `-EIO`. Replace
`-EIO` with `-ETIMEDOUT` for timeout cases, providing more specific and
appropriate error codes.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241209130751.703182-10-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/packing_test.c')
0 files changed, 0 insertions, 0 deletions