]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Specify PHY PM management done by MAC
authorSergiu Moga <sergiu.moga@microchip.com>
Wed, 19 Oct 2022 12:09:32 +0000 (15:09 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Oct 2022 04:12:00 +0000 (21:12 -0700)
commit67e390c9586b2de53af4dd25671a2eba17af2c86
treed21531e97ee4ab455681a43c40f0b20f66361708
parent78ad98bec65e44225fb70dfe689127b1f576ddb4
net: macb: Specify PHY PM management done by MAC

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: b7cc693a62ad ("net: phylink: add mac_managed_pm in phylink_config structure")
Fixes: 9c06e0bd91d7 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state")
Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20221019120929.63098-1-sergiu.moga@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c