netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH stable 5.15.y] net: stmmac: Enable mac_managed_pm phylink config
@ 2024-08-03 11:30 Jisheng Zhang
  2024-08-13 10:47 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Jisheng Zhang @ 2024-08-03 11:30 UTC (permalink / raw)
  To: stable, Greg Kroah-Hartman
  Cc: netdev, Shenwei Wang, Florian Fainelli, David S . Miller

From: Shenwei Wang <shenwei.wang@nxp.com>

commit f151c147b3afcf92dedff53f5f0e965414e4fd2c upstream

Enable the mac_managed_pm configuration in the phylink_config
structure to avoid the kernel warning during system resume.

Fixes: 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state")
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index b0ab8f6986f8..ed552852bb7b 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -1286,6 +1286,8 @@ static int stmmac_phy_setup(struct stmmac_priv *priv)
 	if (!fwnode)
 		fwnode = dev_fwnode(priv->device);
 
+	priv->phylink_config.mac_managed_pm = true;
+
 	phylink = phylink_create(&priv->phylink_config, fwnode,
 				 mode, &stmmac_phylink_mac_ops);
 	if (IS_ERR(phylink))
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH stable 5.15.y] net: stmmac: Enable mac_managed_pm phylink config
  2024-08-03 11:30 [PATCH stable 5.15.y] net: stmmac: Enable mac_managed_pm phylink config Jisheng Zhang
@ 2024-08-13 10:47 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2024-08-13 10:47 UTC (permalink / raw)
  To: Jisheng Zhang
  Cc: stable, netdev, Shenwei Wang, Florian Fainelli, David S . Miller

On Sat, Aug 03, 2024 at 07:30:44PM +0800, Jisheng Zhang wrote:
> From: Shenwei Wang <shenwei.wang@nxp.com>
> 
> commit f151c147b3afcf92dedff53f5f0e965414e4fd2c upstream
> 
> Enable the mac_managed_pm configuration in the phylink_config
> structure to avoid the kernel warning during system resume.
> 
> Fixes: 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state")
> Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
> Acked-by: Florian Fainelli <f.fainelli@gmail.com>
> Signed-off-by: David S. Miller <davem@davemloft.net>
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
> ---
>  drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 ++
>  1 file changed, 2 insertions(+)

Now queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-13 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03 11:30 [PATCH stable 5.15.y] net: stmmac: Enable mac_managed_pm phylink config Jisheng Zhang
2024-08-13 10:47 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).