1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/realtek
Sander Vanheule 9a7f17e11f realtek: ignore disabled switch ports
When marking a switch port as disabled in the device tree, by using
'status = "disabled";', the switch driver fails on boot, causing a
restart:

    CPU 0 Unable to handle kernel paging request at virtual address
    00000000, epc == 802c3064, ra == 8022b4b4
        [ ... ]
    Call Trace:
    [<802c3064>] strlen+0x0/0x2c
    [<8022b4b4>] start_creating.part.0+0x78/0x194
    [<8022bd3c>] debugfs_create_dir+0x44/0x1c0
    [<80396dfc>] rtl838x_dbgfs_port_init+0x54/0x258
    [<80397508>] rtl838x_dbgfs_init+0xe0/0x56c

This is caused by the DSA subsystem (mostly) ignoring the port, while
rtl83xx_mdio_probe() still extracts some details on this disabled port
from the device tree, resulting in the usage of a NULL pointer where a
port name is expected.

By not probing ignoring disabled ports, no attempt is made to create a
debugfs directory later. The device then boots as expected without the
disabled port.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-08-29 08:32:42 +02:00
..
base-files realtek: add support for TP-Link SG2008P 2022-08-13 19:59:47 +02:00
dts-5.10 realtek: switch RTL838X/RTL839X DT to new clock driver 2022-08-28 11:48:30 +02:00
files/firmware/rtl838x_phy
files-5.10 realtek: ignore disabled switch ports 2022-08-29 08:32:42 +02:00
image realtek: d-link: add support for dgs-1210-10mp 2022-08-20 09:02:44 +02:00
patches-5.10 realtek: enable basic config for cpufreq framework 2022-08-28 11:45:03 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: activate clock driver for RTL838X/RTL839X targets 2022-08-28 11:48:30 +02:00
rtl839x realtek: activate clock driver for RTL838X/RTL839X targets 2022-08-28 11:48:30 +02:00
rtl930x kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
rtl931x kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
Makefile realtek: Fix tc default package 2022-03-29 13:43:01 +02:00