]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: properly report internal PHYs through sysfs
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 27 Aug 2014 18:44:33 +0000 (11:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Aug 2014 03:17:53 +0000 (20:17 -0700)
commit16548e4bdaef9f9e32558a31f66e1cd094881704
treee861c480ed7d5114b27f5e73e6fa3950b9ea2f2a
parent4a6b8597993fca3bef49ca2fb52cbc97cac2fa64
net: phy: properly report internal PHYs through sysfs

Internal PHYs may not have a valid PHY interface defined, which will
show up in sysfs as "". Add an explicit check of internal PHYs to report
their interface correctly.

Fixes: a2f6b1c61580 ("net: phy: expose PHY device interface mode")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c