Skip to content

Commit 0432e83

Browse files
hhoffstaettedavem330
authored andcommitted
net: phy: realtek: fix RTL8201F sysfs name
Since 4.19 the following error in sysfs has appeared when using the r8169 NIC driver: $cd /sys/module/realtek/drivers $ls -l ls: cannot access 'mdio_bus:RTL8201F 10/100Mbps Ethernet': No such file or directory [..garbled dir entries follow..] Apparently the forward slash in "10/100Mbps Ethernet" is interpreted as directory separator that leads nowhere, and was introduced in commit 513588d ("net: phy: realtek: add RTL8201F phy-id and functions"). Fix this by removing the offending slash in the driver name. Other drivers in net/phy seem to have the same problem, but I cannot test/verify them. Fixes: 513588d ("net: phy: realtek: add RTL8201F phy-id and functions") Signed-off-by: Holger Hoffstätte <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 12480e3 commit 0432e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/realtek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static struct phy_driver realtek_drvs[] = {
220220
.flags = PHY_HAS_INTERRUPT,
221221
}, {
222222
.phy_id = 0x001cc816,
223-
.name = "RTL8201F 10/100Mbps Ethernet",
223+
.name = "RTL8201F Fast Ethernet",
224224
.phy_id_mask = 0x001fffff,
225225
.features = PHY_BASIC_FEATURES,
226226
.flags = PHY_HAS_INTERRUPT,

0 commit comments

Comments
 (0)