RE: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Kweh, Hock Leong
or...@gmail.com; > manab...@gmail.com; niklas.cas...@axis.com; jo...@kernel.org; > pa...@ucw.cz; Ong, Boon Leong <boon.leong@intel.com>; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Voon, Weifeng > <weifeng.v...@intel.com>; lars.pers...@axis.com > Subjec

RE: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Kweh, Hock Leong
gmail.com; niklas.cas...@axis.com; jo...@kernel.org; > pa...@ucw.cz; Ong, Boon Leong ; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Voon, Weifeng > ; lars.pers...@axis.com > Subject: Re: [PATCH] net: stmmac: synchronize stmmac_open and > stmmac_dvr_probe > > From: "Kweh

RE: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Kweh, Hock Leong
n Leong > <boon.leong@intel.com>; netdev <net...@vger.kernel.org>; LKML ker...@vger.kernel.org>; Voon, Weifeng <weifeng.v...@intel.com>; Lars > Persson <lars.pers...@axis.com> > Subject: Re: [PATCH] net: stmmac: synchronize stmmac_open and > stmmac_dvr_pro

RE: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Kweh, Hock Leong
ood > ; Niklas Cassel ; Johan Hovold > ; pa...@ucw.cz; Ong, Boon Leong > ; netdev ; LKML ker...@vger.kernel.org>; Voon, Weifeng ; Lars > Persson > Subject: Re: [PATCH] net: stmmac: synchronize stmmac_open and > stmmac_dvr_probe > > > > On 12/26/2016 09:10 PM, Flor

Re: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Florian Fainelli
On 12/26/2016 09:10 PM, Florian Fainelli wrote: > > > On 12/27/2016 03:44 AM, Kweh, Hock Leong wrote: >> From: "Kweh, Hock Leong" >> >> If kernel module stmmac driver being loaded after OS booted, there is a >> race condition between stmmac_open() and

Re: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Florian Fainelli
On 12/26/2016 09:10 PM, Florian Fainelli wrote: > > > On 12/27/2016 03:44 AM, Kweh, Hock Leong wrote: >> From: "Kweh, Hock Leong" >> >> If kernel module stmmac driver being loaded after OS booted, there is a >> race condition between stmmac_open() and stmmac_mdio_register(), which is >>

Re: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Florian Fainelli
On 12/27/2016 03:44 AM, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > If kernel module stmmac driver being loaded after OS booted, there is a > race condition between stmmac_open() and stmmac_mdio_register(), which is > invoked inside stmmac_dvr_probe(), and

Re: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread Florian Fainelli
On 12/27/2016 03:44 AM, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > If kernel module stmmac driver being loaded after OS booted, there is a > race condition between stmmac_open() and stmmac_mdio_register(), which is > invoked inside stmmac_dvr_probe(), and the error is showed in

Re: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread David Miller
From: "Kweh, Hock Leong" Date: Tue, 27 Dec 2016 19:44:59 +0800 > From: "Kweh, Hock Leong" > > If kernel module stmmac driver being loaded after OS booted, there is a > race condition between stmmac_open() and stmmac_mdio_register(),

Re: [PATCH] net: stmmac: synchronize stmmac_open and stmmac_dvr_probe

2016-12-26 Thread David Miller
From: "Kweh, Hock Leong" Date: Tue, 27 Dec 2016 19:44:59 +0800 > From: "Kweh, Hock Leong" > > If kernel module stmmac driver being loaded after OS booted, there is a > race condition between stmmac_open() and stmmac_mdio_register(), which is > invoked inside stmmac_dvr_probe(), and the