]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmsysport: Indicate MAC is in charge of PHY PM
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 25 Oct 2022 23:42:01 +0000 (16:42 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Oct 2022 13:56:07 +0000 (15:56 +0200)
commitd6e9431a6c9de9a28f6b7d63272a9ac4672cbace
treee485a8b1a71f370018caf36f4fe18bbeddf5b675
parentfc0315901f8698190bf3950984fa311f091229ae
net: bcmsysport: 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 SYSTEMPORT
driver essentially does exactly what mdio_bus_phy_resume() does by
calling phy_resume().

Fixes: d6f853caf863 ("net: phy: make PHY PM ops a no-op if MAC driver manages PHY PM")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20221025234201.2549360-1-f.fainelli@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/bcmsysport.c