]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: add mac_managed_pm in phylink_config structure
authorShenwei Wang <shenwei.wang@nxp.com>
Fri, 14 Oct 2022 14:47:28 +0000 (09:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Oct 2022 10:51:51 +0000 (11:51 +0100)
commit238f3397d1dcb9b3d1378408039e11c72126afcd
treeba60f90e52d16eb4ce738a43729491911bc2d7cd
parentf521b4aa5c781413c3c9c8fe9a392e2368590895
net: phylink: add mac_managed_pm in phylink_config structure

The recent commit

'commit 4faafe4a276b ("net: phy: Warn about incorrect
mdio_bus_phy_resume() state")'

requires the MAC driver explicitly tell the phy driver who is
managing the PM, otherwise you will see warning during resume
stage.

Add a boolean property in the phylink_config structure so that
the MAC driver can use it to tell the PHY driver if it wants to
manage the PM.

Fixes: 4faafe4a276b ("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>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h