aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorSerhii Serhieiev <adron@mstnt.com>2022-03-20 19:26:32 +0100
committerDavid Bauer <mail@david-bauer.net>2022-10-02 23:04:39 +0200
commit12eebe8871e07fbfb5059f1877b413fa7a3d3c3a (patch)
tree81560f854030b25a2de93df293d5b23dc4ccb8e1 /target
parent5293c0829047086566c0c5ef25005db74ce0d981 (diff)
downloadupstream-12eebe8871e07fbfb5059f1877b413fa7a3d3c3a.tar.gz
upstream-12eebe8871e07fbfb5059f1877b413fa7a3d3c3a.tar.bz2
upstream-12eebe8871e07fbfb5059f1877b413fa7a3d3c3a.zip
ipq40xx: qca807x: add suspend and resume ops
Currently, suspend and resume ops are not present, this means that if user disables a DSA interface that the PHY-s remain alive and the link is up. Fix it by using generic PHY suspend and resume ops. Signed-off-by: Serhii Serhieiev <adron@mstnt.com> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ipq40xx/files/drivers/net/phy/qca807x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c b/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c
index 2a2d19d6db..94d5b83a7c 100644
--- a/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c
+++ b/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c
@@ -820,6 +820,8 @@ static struct phy_driver qca807x_drivers[] = {
.soft_reset = genphy_soft_reset,
.get_tunable = qca807x_get_tunable,
.set_tunable = qca807x_set_tunable,
+ .resume = genphy_resume,
+ .suspend = genphy_suspend,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
.cable_test_start = qca807x_cable_test_start,
.cable_test_get_status = qca807x_cable_test_get_status,
@@ -844,6 +846,8 @@ static struct phy_driver qca807x_drivers[] = {
.soft_reset = genphy_soft_reset,
.get_tunable = qca807x_get_tunable,
.set_tunable = qca807x_set_tunable,
+ .resume = genphy_resume,
+ .suspend = genphy_suspend,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
.cable_test_start = qca807x_cable_test_start,
.cable_test_get_status = qca807x_cable_test_get_status,