openwrt/target/linux/realtek
Jonas Jelonek 2e56a1ffc6 realtek: mdio-serdes: improve debugfs creation
Commit 3c073b5cb2 cleaned up the debugfs creation in
mdio-realtek-otto-serdes driver to not explicitly check if the root
directory already exists. This is fine because kernel handles the case
properly so there's no need to check anymore.

However, this pollutes the boot log with:
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'
[..] debugfs: 'realtek_otto_serdes' already exists in '/'

Now, the root directory creation is attempted multiple times, causing
the kernel to print an error message because the directory already
exists.

Fix this by moving the SerDes loop into rtsds_debug_init and only try
to create the root debugfs directory once.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21179
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 8e4730fd60)
2025-12-16 13:12:15 +01:00
..
base-files realtek: rtl930x: Add support for Plasma Cloud MCX3 Media Converter 2025-11-07 21:12:58 +01:00
dts realtek: rtl838x: drop SFP pseudo-PHYs and phy-handle 2025-12-09 00:28:41 +01:00
files/firmware/rtl838x_phy
files-6.12 realtek: mdio-serdes: improve debugfs creation 2025-12-16 13:12:15 +01:00
image realtek: Cleanup tab vs spaces for indentation 2025-11-23 22:26:10 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.59 2025-11-25 00:01:11 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl839x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl930x realtek: add support for Zyxel XGS1010-12 A1 2025-11-03 11:07:20 +01:00
rtl930x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00