summaryrefslogtreecommitdiffstats
path: root/block/bio-integrity.c
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2018-03-16 17:08:35 -0500
committerDavid S. Miller <davem@davemloft.net>2018-03-19 21:14:27 -0400
commit4414b3ed74be0e205e04e12cd83542a727d88255 (patch)
treeebb85cbfdbb58eb932a8f01b6f95b83fcc060ecf /block/bio-integrity.c
parent2399ac42e762ab25c58420e25359b2921afdc55f (diff)
downloadlinux-stable-4414b3ed74be0e205e04e12cd83542a727d88255.tar.gz
linux-stable-4414b3ed74be0e205e04e12cd83542a727d88255.tar.bz2
linux-stable-4414b3ed74be0e205e04e12cd83542a727d88255.zip
net: phy: relax error checking when creating sysfs link netdev->phydev
Some ethernet drivers (like TI CPSW) may connect and manage >1 Net PHYs per one netdevice, as result such drivers will produce warning during system boot and fail to connect second phy to netdevice when PHYLIB framework will try to create sysfs link netdev->phydev for second PHY in phy_attach_direct(), because sysfs link with the same name has been created already for the first PHY. As result, second CPSW external port will became unusable. Fix it by relaxing error checking when PHYLIB framework is creating sysfs link netdev->phydev in phy_attach_direct(), suppressing warning by using sysfs_create_link_nowarn() and adding error message instead. After this change links (phy->netdev and netdev->phy) creation failure is not fatal any more and system can continue working, which fixes TI CPSW issue. Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Andrew Lunn <andrew@lunn.ch> Fixes: a3995460491d ("net: phy: Relax error checking on sysfs_create_link()") Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/bio-integrity.c')
0 files changed, 0 insertions, 0 deletions