Commit 93100d68 authored by DENG Qingfang's avatar DENG Qingfang Committed by Jakub Kicinski
Browse files

net: phy: mediatek: add the missing suspend/resume callbacks



Without suspend/resume callbacks, the PHY cannot be powered down/up
administratively.

Fixes: e40d2cca ("net: phy: add MediaTek Gigabit Ethernet PHY driver")
Signed-off-by: default avatarDENG Qingfang <dqfext@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20210823044422.164184-1-dqfext@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3b0720ba
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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,
	},