Re: [PATCH net] net: usb: lan78xx: Connect PHY before registering MAC

2019-10-18 Thread David Miller
From: Andrew Lunn Date: Thu, 17 Oct 2019 21:29:26 +0200 > As soon as the netdev is registers, the kernel can start using the > interface. If the driver connects the MAC to the PHY after the netdev > is registered, there is a race condition where the interface can be > opened without having the PH

Re: [PATCH net] net: usb: lan78xx: Connect PHY before registering MAC

2019-10-18 Thread Daniel Wagner
On Thu, Oct 17, 2019 at 09:29:26PM +0200, Andrew Lunn wrote: > As soon as the netdev is registers, the kernel can start using the > interface. If the driver connects the MAC to the PHY after the netdev > is registered, there is a race condition where the interface can be > opened without having the

[PATCH net] net: usb: lan78xx: Connect PHY before registering MAC

2019-10-17 Thread Andrew Lunn
As soon as the netdev is registers, the kernel can start using the interface. If the driver connects the MAC to the PHY after the netdev is registered, there is a race condition where the interface can be opened without having the PHY connected. Change the order to close this race condition. Fixe