[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z8Cf7j530L2QaUqT@shell.armlinux.org.uk>
Date: Thu, 27 Feb 2025 17:25:02 +0000
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Andrew Lunn <andrew@...n.ch>
Cc: Heiner Kallweit <hkallweit1@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Jon Hunter <jonathanh@...dia.com>,
linux-arm-kernel@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@...il.com>, netdev@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>,
Thierry Reding <treding@...dia.com>
Subject: Re: [PATCH RFC net-next 3/5] net: stmmac: simplify phylink_suspend()
and phylink_resume() calls
On Thu, Feb 27, 2025 at 05:45:35PM +0100, Andrew Lunn wrote:
> > @@ -7927,13 +7925,9 @@ int stmmac_resume(struct device *dev)
> > }
> >
> > rtnl_lock();
> > - if (device_may_wakeup(priv->device) && priv->plat->pmt) {
> > - phylink_resume(priv->phylink);
> > - } else {
> > - phylink_resume(priv->phylink);
> > - if (device_may_wakeup(priv->device))
> > - phylink_speed_up(priv->phylink);
> > - }
> > + phylink_resume(priv->phylink);
> > + if (device_may_wakeup(priv->device) && !priv->plat->pmt)
> > + phylink_speed_up(priv->phylink);
> > rtnl_unlock();
> >
> > rtnl_lock();
>
> Unrelated to this patch, but unlock() followed by lock()? Seems like
> some more code which could be cleaned up?
Indeed, this vanishes in the next patch due to phylink_resume()
moving later.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists