* [PATCH] net: phy: realtek: fix RTL8201F sysfs name
@ 2018-11-04 18:02 Holger Hoffstätte
2018-11-04 18:43 ` Andrew Lunn
2018-11-04 18:47 ` Andrew Lunn
0 siblings, 2 replies; 5+ messages in thread
From: Holger Hoffstätte @ 2018-11-04 18:02 UTC (permalink / raw)
To: Netdev, David S. Miller
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
513588dd44b ("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.
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
---
drivers/net/phy/realtek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index 7fc8508b5231..271e8adc39f1 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -220,7 +220,7 @@ static struct phy_driver realtek_drvs[] = {
.flags = PHY_HAS_INTERRUPT,
}, {
.phy_id = 0x001cc816,
- .name = "RTL8201F 10/100Mbps Ethernet",
+ .name = "RTL8201F Fast Ethernet",
.phy_id_mask = 0x001fffff,
.features = PHY_BASIC_FEATURES,
.flags = PHY_HAS_INTERRUPT,
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: realtek: fix RTL8201F sysfs name
2018-11-04 18:02 [PATCH] net: phy: realtek: fix RTL8201F sysfs name Holger Hoffstätte
@ 2018-11-04 18:43 ` Andrew Lunn
2018-11-06 2:24 ` Florian Fainelli
2018-11-04 18:47 ` Andrew Lunn
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2018-11-04 18:43 UTC (permalink / raw)
To: Holger Hoffstätte; +Cc: Netdev, David S. Miller
On Sun, Nov 04, 2018 at 07:02:42PM +0100, Holger Hoffstätte wrote:
> 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
> 513588dd44b ("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.
>
> Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Fixes:513588dd44b ("net: phy: realtek: add RTL8201F phy-id and functions").
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
David, please apply to net.
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: realtek: fix RTL8201F sysfs name
2018-11-04 18:43 ` Andrew Lunn
@ 2018-11-06 2:24 ` Florian Fainelli
0 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2018-11-06 2:24 UTC (permalink / raw)
To: Andrew Lunn, Holger Hoffstätte; +Cc: Netdev, David S. Miller
On 11/4/2018 10:43 AM, Andrew Lunn wrote:
> On Sun, Nov 04, 2018 at 07:02:42PM +0100, Holger Hoffstätte wrote:
>> 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
>> 513588dd44b ("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.
>>
>> Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
>
> Fixes:513588dd44b ("net: phy: realtek: add RTL8201F phy-id and functions").
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
> David, please apply to net.
We should probably seek a more generic solution within sysfs to deny
specific problematic characters from being used, such as ., .., / etc.
--
Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: realtek: fix RTL8201F sysfs name
2018-11-04 18:02 [PATCH] net: phy: realtek: fix RTL8201F sysfs name Holger Hoffstätte
2018-11-04 18:43 ` Andrew Lunn
@ 2018-11-04 18:47 ` Andrew Lunn
2018-11-05 0:44 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2018-11-04 18:47 UTC (permalink / raw)
To: Holger Hoffstätte; +Cc: Netdev, David S. Miller
On Sun, Nov 04, 2018 at 07:02:42PM +0100, Holger Hoffstätte wrote:
> 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
> 513588dd44b ("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.
Hi Holger
This last comment would generally be placed after the ---. It will
then not appear in the commit message.
Also, in future, please put the target tree, net or net-next as part
of the subject line:
[PATCH net] ....
Thanks
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: realtek: fix RTL8201F sysfs name
2018-11-04 18:47 ` Andrew Lunn
@ 2018-11-05 0:44 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-11-05 0:44 UTC (permalink / raw)
To: andrew; +Cc: holger, netdev
From: Andrew Lunn <andrew@lunn.ch>
Date: Sun, 4 Nov 2018 19:47:41 +0100
> On Sun, Nov 04, 2018 at 07:02:42PM +0100, Holger Hoffstätte wrote:
>> 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
>> 513588dd44b ("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.
>
> Hi Holger
>
> This last comment would generally be placed after the ---. It will
> then not appear in the commit message.
>
> Also, in future, please put the target tree, net or net-next as part
> of the subject line:
>
> [PATCH net] ....
This didn't apply cleanly, something mangled the patch.
But I fixed it up and queued this up for -stable.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-11-06 11:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-04 18:02 [PATCH] net: phy: realtek: fix RTL8201F sysfs name Holger Hoffstätte
2018-11-04 18:43 ` Andrew Lunn
2018-11-06 2:24 ` Florian Fainelli
2018-11-04 18:47 ` Andrew Lunn
2018-11-05 0:44 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).