Re: [OpenWrt-Devel] [PATCH] ag71xx: fix a race involving netdev registration

2013-11-08 Thread Gabor Juhos
2013.11.03. 9:16 keltezéssel, Catalin Patulea írta: > In particular, phy_connect before register_netdev. This is because > register_netdev runs the netdev notifiers, which can race with the rest of > the initialization in ag71xx_probe. In my case this manifested in two ways: > > 1) If ag71xx is co

Re: [OpenWrt-Devel] [PATCH] ag71xx: fix a race involving netdev registration

2013-11-03 Thread Catalin Patulea
On Sun, Nov 3, 2013 at 3:16 AM, Catalin Patulea wrote: > In particular, phy_connect before register_netdev. This is because > register_netdev runs the netdev notifiers, which can race with the rest of > the initialization in ag71xx_probe. Here's someone who demonstrated that this race condition ex

[OpenWrt-Devel] [PATCH] ag71xx: fix a race involving netdev registration

2013-11-03 Thread Catalin Patulea
In particular, phy_connect before register_netdev. This is because register_netdev runs the netdev notifiers, which can race with the rest of the initialization in ag71xx_probe. In my case this manifested in two ways: 1) If ag71xx is compiled as a module and inserted after netifd has started, n