diff options
author | David S. Miller <davem@davemloft.net> | 2018-03-19 21:14:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-19 21:14:27 -0400 |
commit | 36fe095606f881e6a3c7f9283c986aec6083f3e6 (patch) | |
tree | ebb85cbfdbb58eb932a8f01b6f95b83fcc060ecf /kernel | |
parent | a069215cf5985f3aa1bba550264907d6bd05c5f7 (diff) | |
parent | 4414b3ed74be0e205e04e12cd83542a727d88255 (diff) | |
download | linux-stable-36fe095606f881e6a3c7f9283c986aec6083f3e6.tar.gz linux-stable-36fe095606f881e6a3c7f9283c986aec6083f3e6.tar.bz2 linux-stable-36fe095606f881e6a3c7f9283c986aec6083f3e6.zip |
Merge branch 'phy-relax-error-checking'
Grygorii Strashko says:
====================
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.
This regression was introduced by commits:
5568363f0cb3 ("net: phy: Create sysfs reciprocal links for attached_dev/phydev"
a3995460491d ("net: phy: Relax error checking on sysfs_create_link()"
Patch 1: exports sysfs_create_link_nowarn() function as preparation for Patch 2.
Patch 2: relaxes error checking when PHYLIB framework is creating sysfs
link netdev->phydev in phy_attach_direct(), suppresses warning by using
sysfs_create_link_nowarn() and adds error message instead, so links creation
failure is not fatal any more and system can continue working,
which fixes TI CPSW issue and makes boot logs accessible
in case of NFS boot, for example.
This can be stable material 4.13+.
Changes in v2:
- commit messages updated.
v1:
https://patchwork.ozlabs.org/cover/886058/
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions