openwrt/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx
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
..
common.c realtek: ignore disabled switch ports 2022-08-29 08:32:42 +02:00
debugfs.c realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00
dsa.c realtek: do not reset SerDes on link change 2022-05-11 22:23:50 +02:00
Kconfig realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
Makefile realtek: Add driver support for TC offloading 2021-10-09 08:25:05 +02:00
qos.c realtek: copy config/files/patches to 5.10 2021-09-26 00:32:17 +02:00
rtl83xx.h realtek: do not reset SerDes on link change 2022-05-11 22:23:50 +02:00
rtl838x.c realtek: clean up rtl838x MDIO busy wait loop 2022-07-28 14:08:51 +02:00
rtl838x.h realtek: add support for port led configuration on RTL93XX 2022-02-17 15:21:47 +00:00
rtl839x.c realtek: Copy all BPDUs to the kernel 2022-02-17 15:21:47 +00:00
rtl930x.c realtek: add support for port led configuration on RTL93XX 2022-02-17 15:21:47 +00:00
rtl931x.c realtek: implement Clause-45 MDIO write on rtl931x 2022-02-17 15:21:47 +00:00
tc.c realtek: Add driver support for TC offloading 2021-10-09 08:25:05 +02:00