]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: realtek: fix RTL8201F sysfs name
authorHolger Hoffstätte <holger@applied-asynchrony.com>
Sun, 4 Nov 2018 18:02:42 +0000 (19:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Nov 2018 00:43:17 +0000 (16:43 -0800)
commit45cc1f36080d761d41788c9aa83454fc5b9eb015
tree8b926baffa91c26954ac4f68faf60e151428398f
parent22ed36b55b3c6db48d6721a43bb5e3a1d8497d9e
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
90d3c8d1214 ("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: 90d3c8d1214 ("net: phy: realtek: add RTL8201F phy-id and functions")
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c