[][kernel][mt7988][i2.5gphy][net: phy: Hook suspend/resume function]
[Description]
Add suspend/resume function so ifconfig commands can work correctly.
Without this patch, phy CR may be wrong when ifconfig commands are
triggered.
[Release-log]
N/A
Change-Id: Ib7641ff71c6179672ba28a0c6b5c06f31f5b7f56
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8175401
diff --git a/target/linux/mediatek/files-5.4/drivers/net/phy/mediatek-2p5ge.c b/target/linux/mediatek/files-5.4/drivers/net/phy/mediatek-2p5ge.c
index 8cbe4ac..6a1c9e0 100644
--- a/target/linux/mediatek/files-5.4/drivers/net/phy/mediatek-2p5ge.c
+++ b/target/linux/mediatek/files-5.4/drivers/net/phy/mediatek-2p5ge.c
@@ -253,8 +253,8 @@
.get_rate_matching = mt798x_2p5ge_phy_get_rate_matching,
//.config_intr = genphy_no_config_intr,
//.handle_interrupt = genphy_no_ack_interrupt,
- //.suspend = genphy_suspend,
- //.resume = genphy_resume,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
},
};