Re: [PATCH net] net: dsa: Check return value of phy_connect_direct()

2017-01-23 Thread David Miller
From: Florian Fainelli Date: Fri, 20 Jan 2017 16:05:05 -0800 > 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 and which will soon

[PATCH net] net: dsa: Check return value of phy_connect_direct()

2017-01-20 Thread Florian Fainelli
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 and which will soon be in error because the PHY device is in error. The conditions for su