linux_dsm_epyc7002/drivers/net/phy
Grygorii Strashko 4414b3ed74 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: a399546049 ("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>
2018-03-19 21:14:27 -04:00
..
amd.c
aquantia.c
at803x.c net: phy: fix wrong masks to phy_modify() 2018-01-08 14:20:21 -05:00
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm-cygnus.c
bcm-phy-lib.c net: phy: broadcom: Use strlcpy() for ethtool::get_strings 2018-03-06 11:12:39 -05:00
bcm-phy-lib.h
broadcom.c
cicada.c
cortina.c
davicom.c
dp83640_reg.h
dp83640.c
dp83822.c
dp83848.c
dp83867.c
et1011c.c
fixed_phy.c net: phy: fixed-phy: remove fixed_phy_update_state() 2018-01-03 10:38:54 -05:00
icplus.c
intel-xway.c
Kconfig
lxt.c
Makefile
marvell10g.c net: phy: marvell10g: add support for half duplex 100M and 10M 2018-01-02 15:00:50 -05:00
marvell.c net: phy: marvell: Use strlcpy() for ethtool::get_strings 2018-03-06 11:12:39 -05:00
mdio_bus.c net: phy: Handle not having GPIO enabled in the kernel 2018-02-06 11:20:17 -05:00
mdio_device.c
mdio-bcm-iproc.c
mdio-bcm-unimac.c net: phy: mdio-bcm-unimac: fix potential NULL dereference in unimac_mdio_probe() 2018-01-11 13:56:24 -05:00
mdio-bitbang.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio-cavium.c
mdio-cavium.h
mdio-gpio.c
mdio-hisi-femac.c
mdio-i2c.c
mdio-i2c.h
mdio-moxart.c
mdio-mux-bcm-iproc.c
mdio-mux-gpio.c
mdio-mux-mmioreg.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c mdio-sun4i: Fix a memory leak 2018-01-08 14:30:28 -05:00
mdio-thunder.c
mdio-xgene.c
mdio-xgene.h
meson-gxl.c
micrel.c net: phy: micrel: Use strlcpy() for ethtool::get_strings 2018-03-06 11:12:39 -05:00
microchip.c
mscc.c
national.c
phy_device.c net: phy: relax error checking when creating sysfs link netdev->phydev 2018-03-19 21:14:27 -04:00
phy_led_triggers.c
phy-c45.c net: phy: marvell10g: add MDI swap reporting 2018-01-02 15:00:49 -05:00
phy-core.c net: phy: Have __phy_modify return 0 on success 2018-01-15 12:49:30 -05:00
phy.c net: phy: Tell caller result of phy_change() 2018-03-12 10:33:07 -04:00
phylink.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-01-09 10:37:00 -05:00
qsemi.c
realtek.c phy: realtek: use new helpers for paged register access 2018-01-16 13:56:33 -05:00
rockchip.c
sfp-bus.c net: phy: sfp: Fix kernel doc warning 2018-01-23 11:06:50 -05:00
sfp.c sfp: use precision to print non-null terminated strings 2018-01-02 21:45:32 -05:00
sfp.h
smsc.c
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c