net: bcmasp: Indicate MAC is in charge of PHY PM
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Thu, 15 Feb 2024 18:27:31 +0000 (10:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Feb 2024 11:32:10 +0000 (11:32 +0000)
commit5b76d928f8b779a1b19c5842e7cabee4cbb610c3
tree434ad19762ee02698306efc8d27a2070d1482646
parent398b7c3770c23de9a7d1a680960025fa8b014784
net: bcmasp: Indicate MAC is in charge of PHY PM

Avoid the PHY library call unnecessarily into the suspend/resume
functions by setting phydev->mac_managed_pm to true. The ASP driver
essentially does exactly what mdio_bus_phy_resume() does.

Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c