Re: [PATCH] net: phy: realtek: fix listing of sysfs directory tree
From: Andrew Lunn
Date: Sun Nov 15 2026 - 18:00:48 EST
On Sun, Nov 15, 2026 at 10:40:45PM +0100, Mateusz Jończyk wrote:
> On git master, listing the contents of sysfs produces an error:
>
> root@mateusz-debian:/sys# LANG=C find -iname foobar
> find: './module/realtek/drivers': Input/output error
> root@mateusz-debian:/sys# LANG=C ls -1 ./module/realtek/drivers
> ls: reading directory './module/realtek/drivers': Input/output error
> 'mdio_bus:Generic FE-GE Realtek PHY'
> 'mdio_bus:RTL8201CP Ethernet'
> 'mdio_bus:RTL8201F Fast Ethernet'
> 'mdio_bus:RTL8208 Fast Ethernet'
> 'mdio_bus:RTL8211B Gigabit Ethernet'
> [...]
>
> Investigation shows that the forward slash in the driver name is the
> culprit. Fix it.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: f0667918d5fc ("net: phy: realtek: add support for RTL8261D")
> Signed-off-by: Mateusz Jończyk <mat.jonczyk@xxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew