openwrt/target/linux/realtek
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
..
base-files realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
dts-5.10 realtek: fix GS1900-48 firwmare partition 2022-12-28 22:44:10 +01:00
dts-5.15 realtek: fix GS1900-48 firwmare partition 2022-12-28 22:44:10 +01:00
files/firmware/rtl838x_phy
files-5.10 realtek: Migrate to upstream generic MIPS addresses 2023-01-05 21:59:20 +01:00
files-5.15 realtek: return correct error value for phy ops 2023-01-05 23:08:04 +01:00
image realtek: Migrate to upstream generic MIPS addresses 2023-01-05 21:59:20 +01:00
patches-5.10 realtek: 5.10: Fix incorrect switch patches 2022-12-24 11:56:21 +01:00
patches-5.15 realtek: 5.15: Fix incorrect switch patches 2022-12-24 11:56:21 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
rtl839x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
rtl930x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
rtl931x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
Makefile realtek: Cleanup Makefiles 2022-12-27 16:33:15 +01:00