net: phy: mediatek: add the missing suspend/resume callbacks
Subsystems (4)
PATCH 1/1 net: phy: mediatek: add the missing suspend/resume callbacks
Without suspend/resume callbacks, the PHY cannot be powered down/up administratively.
Fixes e40d2cca0189 ("net: phy: add MediaTek Gigabit Ethernet PHY driver")
Signed-off-by DENG Qingfang <[email protected]>
--- drivers/net/phy/mediatek-ge.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/phy/mediatek-ge.c +4 -0
@@ -81,6 +81,8 @@ static struct phy_driver mtk_gephy_driver[] = {*/ .config_intr = genphy_no_config_intr, .handle_interrupt = genphy_handle_interrupt_no_ack, + .suspend = genphy_suspend, + .resume = genphy_resume, .read_page = mtk_gephy_read_page, .write_page = mtk_gephy_write_page, },
@@ -93,6 +95,8 @@ static struct phy_driver mtk_gephy_driver[] = {*/ .config_intr = genphy_no_config_intr, .handle_interrupt = genphy_handle_interrupt_no_ack, + .suspend = genphy_suspend, + .resume = genphy_resume, .read_page = mtk_gephy_read_page, .write_page = mtk_gephy_write_page, },
Signature · 1 line
2.25.1
Quoted 5 lines · DENG Qingfang
Without suspend/resume callbacks, the PHY cannot be powered down/up administratively.
Fixes e40d2cca0189 ("net: phy: add MediaTek Gigabit Ethernet PHY driver")Signed-off-by DENG Qingfang <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
Quoted 8 lines · On Mon, 23 Aug 2021 15:00:08 +0200 Andrew Lunn wrote:
Quoted 5 lines · DENG Qingfang
Without suspend/resume callbacks, the PHY cannot be powered down/up administratively.
Fixes e40d2cca0189 ("net: phy: add MediaTek Gigabit Ethernet PHY driver")Signed-off-by DENG Qingfang <[email protected]>Reviewed-by Andrew Lunn <[email protected]>
Applied, thanks!