[PATCH for v4.9 LTS 41/86] net: dsa: Check return value of phy_connect_direct()

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Florian Fainelli [ Upstream commit 4078b76cac68e50ccf1f76a74e7d3d5788aec3fe ] We need to check the return value of phy_connect_direct() in dsa_slave_phy_connect() otherwise we may be continuing the initialization of a slave network device with a PHY that already

[PATCH for v4.9 LTS 41/86] net: dsa: Check return value of phy_connect_direct()

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Florian Fainelli [ Upstream commit 4078b76cac68e50ccf1f76a74e7d3d5788aec3fe ] We need to check the return value of phy_connect_direct() in dsa_slave_phy_connect() otherwise we may be continuing the initialization of a slave network device with a PHY that already attached somewhere else