[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <OS0PR01MB59227BDF7D849406D618F83286E09@OS0PR01MB5922.jpnprd01.prod.outlook.com>
Date: Wed, 14 Dec 2022 08:15:27 +0000
From: Biju Das <biju.das.jz@...renesas.com>
To: Leon Romanovsky <leon@...nel.org>
CC: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Sergey Shtylyov <s.shtylyov@....ru>,
Phil Edworthy <phil.edworthy@...esas.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Hangbin Liu <liuhangbin@...il.com>,
Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
Masaru Nagai <masaru.nagai.vx@...esas.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-renesas-soc@...r.kernel.org"
<linux-renesas-soc@...r.kernel.org>,
Fabrizio Castro <fabrizio.castro.jz@...esas.com>,
"stable@...r.kernel.org" <stable@...r.kernel.org>
Subject: RE: [PATCH net-next] ravb: Fix "failed to switch device to config
mode" message during unbind
> Subject: Re: [PATCH net-next] ravb: Fix "failed to switch device to config
> mode" message during unbind
>
> On Wed, Dec 14, 2022 at 08:07:55AM +0000, Biju Das wrote:
> > Hi Leon Romanovsky,
> >
> > Thanks for the feedback.
> >
> > > Subject: Re: [PATCH net-next] ravb: Fix "failed to switch device to
> > > config mode" message during unbind
> > >
> > > On Tue, Dec 13, 2022 at 09:59:38AM +0000, Biju Das wrote:
> > > > This patch fixes the error "ravb 11c20000.ethernet eth0: failed to
> > > > switch device to config mode" during unbind.
> > > >
> > > > We are doing register access after pm_runtime_put_sync().
> > > >
> > > > We usually do cleanup in reverse order of init. Currently in
> > > > remove(), the "pm_runtime_put_sync" is not in reverse order.
> > > >
> > > > Probe
> > > > reset_control_deassert(rstc);
> > > > pm_runtime_enable(&pdev->dev);
> > > > pm_runtime_get_sync(&pdev->dev);
> > > >
> > > > remove
> > > > pm_runtime_put_sync(&pdev->dev);
> > > > unregister_netdev(ndev);
> > > > ..
> > > > ravb_mdio_release(priv);
> > > > pm_runtime_disable(&pdev->dev);
> > > >
> > > > Consider the call to unregister_netdev()
> > > > unregister_netdev->unregister_netdevice_queue->rollback_registered
> > > > _man y that calls the below functions which access the registers
> > > > after
> > > > pm_runtime_put_sync()
> > > > 1) ravb_get_stats
> > > > 2) ravb_close
> > > >
> > > > Fixes: a0d2f20650e8 ("Renesas Ethernet AVB PTP clock driver")
> > >
> > > I don't know how you came to this fixes line, but the more correct
> > > one is
> > > c156633f1353 ("Renesas Ethernet AVB driver proper")
> >
> > I got the details from [1]. The file name is renamed immediately after
> c156633f1353.
> >
> > So from Stable backporting point I feel [1] is better.
>
> No, you should use correct tag from the beginning, @stable will figure it.
OK will send v2 with PATCH net and correct fixes tag.
Cheers,
Biju
Powered by blists - more mailing lists