]> www.infradead.org Git - users/hch/xfs.git/commit
net: ethernet: mtk-star-emac: set mac_managed_pm when probing
authorJian Hui Lee <jianhui.lee@canonical.com>
Mon, 8 Jul 2024 06:52:09 +0000 (14:52 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Jul 2024 08:13:28 +0000 (10:13 +0200)
commit8c6790b5c25dfac11b589cc37346bcf9e23ad468
tree3e3f7ddac317d7fccdc8b2d45f6794f1e1882dc8
parent76a0a3f9cc2fbd0e56671706bb74a9a988397898
net: ethernet: mtk-star-emac: set mac_managed_pm when probing

The below commit introduced a warning message when phy state is not in
the states: PHY_HALTED, PHY_READY, and PHY_UP.
commit 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state")

mtk-star-emac doesn't need mdiobus suspend/resume. To fix the warning
message during resume, indicate the phy resume/suspend is managed by the
mac when probing.

Fixes: 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state")
Signed-off-by: Jian Hui Lee <jianhui.lee@canonical.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20240708065210.4178980-1-jianhui.lee@canonical.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_star_emac.c