Files
openwrt-R7800-nss/target/linux
Pascal Ernster de2dc3feae realtek: return correct error value for phy ops
A behavioural change was introduced with commit 758c88b969 ("realtek:
Whitespace and codestyle cleanup") causing rtl838x_read_phy() and
rtl838x_write_phy() to unconditionally return -ETIMEDOUT. As a result,
probing the device during boot fails:

    Error setting up netdev, freeing it again.
    rtl838x-eth: probe of 1b00a300.ethernet failed with error -5

Fix the bootloop caused by this regression with kernel 5.15 on rtl838x
devices, by properly returning 0 on success.

Tested on a Netgear GS108T v3, a Netgear GS310TP v1, a Zyxel GS1900-8HP
v1 and an HPE 1920-8G.

Fixes: 758c88b969 ("realtek: Whitespace and codestyle cleanup")
Tested-by: Stijn Segers <foss@volatilesystems.org>
Tested-by: Jan Hoffmann <jan@3e8.eu>
Signed-off-by: Pascal Ernster <git@hardfalcon.net>
2023-01-05 23:08:04 +01:00
..
2022-11-27 13:18:29 +01:00
2022-12-24 15:24:18 +01:00
2022-12-23 19:44:14 +01:00
2023-01-03 23:55:45 +01:00
2023-01-03 23:55:45 +01:00
2022-12-23 19:44:20 +01:00
2023-01-03 23:55:45 +01:00
2022-12-23 19:44:20 +01:00
2023-01-03 23:55:45 +01:00
2022-12-23 19:44:20 +01:00
2022-12-23 19:44:22 +01:00
2023-01-03 23:55:45 +01:00
2022-12-14 18:53:39 +02:00
2022-12-23 19:44:21 +01:00
2022-12-12 09:06:17 +01:00
2023-01-03 20:56:01 +01:00