[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <527fe1c9-fcaf-af0f-1b5b-aee46afe56f9@gmail.com>
Date: Wed, 19 Oct 2022 16:37:03 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Sergiu Moga <sergiu.moga@...rochip.com>,
nicolas.ferre@...rochip.com, claudiu.beznea@...rochip.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, linux@...linux.org.uk,
tudor.ambarus@...rochip.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] net: macb: Specify PHY PM management done by MAC
On 10/19/2022 5:09 AM, Sergiu Moga wrote:
> The `macb_resume`/`macb_suspend` methods already call the
> `phylink_start`/`phylink_stop` methods during their execution so
> explicitly say that the PM of the PHY is done by MAC by using the
> `mac_managed_pm` flag of the `struct phylink_config`.
>
> This also fixes the warning message issued during resume:
> WARNING: CPU: 0 PID: 237 at drivers/net/phy/phy_device.c:323 mdio_bus_phy_resume+0x144/0x148
>
> Depends-on: 96de900ae78e ("net: phylink: add mac_managed_pm in phylink_config structure")
> Fixes: 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state")
> Signed-off-by: Sergiu Moga <sergiu.moga@...rochip.com>
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
Makes me realize we need to do the same in DSA, I will cook a patch soon.
--
Florian
Powered by blists - more mailing lists