mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-01 12:02:03 +00:00
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>
This commit is contained in:
parent
5293c08290
commit
12eebe8871
@ -820,6 +820,8 @@ static struct phy_driver qca807x_drivers[] = {
|
|||||||
.soft_reset = genphy_soft_reset,
|
.soft_reset = genphy_soft_reset,
|
||||||
.get_tunable = qca807x_get_tunable,
|
.get_tunable = qca807x_get_tunable,
|
||||||
.set_tunable = qca807x_set_tunable,
|
.set_tunable = qca807x_set_tunable,
|
||||||
|
.resume = genphy_resume,
|
||||||
|
.suspend = genphy_suspend,
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
|
||||||
.cable_test_start = qca807x_cable_test_start,
|
.cable_test_start = qca807x_cable_test_start,
|
||||||
.cable_test_get_status = qca807x_cable_test_get_status,
|
.cable_test_get_status = qca807x_cable_test_get_status,
|
||||||
@ -844,6 +846,8 @@ static struct phy_driver qca807x_drivers[] = {
|
|||||||
.soft_reset = genphy_soft_reset,
|
.soft_reset = genphy_soft_reset,
|
||||||
.get_tunable = qca807x_get_tunable,
|
.get_tunable = qca807x_get_tunable,
|
||||||
.set_tunable = qca807x_set_tunable,
|
.set_tunable = qca807x_set_tunable,
|
||||||
|
.resume = genphy_resume,
|
||||||
|
.suspend = genphy_suspend,
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
|
||||||
.cable_test_start = qca807x_cable_test_start,
|
.cable_test_start = qca807x_cable_test_start,
|
||||||
.cable_test_get_status = qca807x_cable_test_get_status,
|
.cable_test_get_status = qca807x_cable_test_get_status,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user