forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kernel 5.15 and 6.1 patches to add suspend & resume callbacks to …
…BCM54612E driver
- Loading branch information
1 parent
d2a5c11
commit cb1b99e
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
target/linux/generic/pending-5.15/731-net-phy-bcm54612e-add-suspend-resume.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From: Marco von Rosenberg <[email protected]> | ||
Date: Thu, 5 Oct 2023 23:00:42 +0200 | ||
Subject: net: phy: broadcom: Wire suspend/resume for BCM54612E | ||
|
||
The BCM54612E ethernet PHY supports IDDQ-SR. | ||
Therefore wire-up the suspend and resume callbacks | ||
to point to bcm54xx_suspend() and bcm54xx_resume(). | ||
|
||
Signed-off-by: Marco von Rosenberg <[email protected]> | ||
--- | ||
drivers/net/phy/broadcom.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
--- a/drivers/net/phy/broadcom.c | ||
+++ b/drivers/net/phy/broadcom.c | ||
@@ -795,6 +795,8 @@ static struct phy_driver broadcom_driver | ||
.config_init = bcm54xx_config_init, | ||
.config_intr = bcm_phy_config_intr, | ||
.handle_interrupt = bcm_phy_handle_interrupt, | ||
+ .suspend = genphy_suspend, | ||
+ .resume = bcm54xx_resume, | ||
}, { | ||
.phy_id = PHY_ID_BCM54616S, | ||
.phy_id_mask = 0xfffffff0, |
29 changes: 29 additions & 0 deletions
29
target/linux/generic/pending-6.1/738-net-phy-bcm54612e-add-suspend-resume.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 380b50ae3a04222334a3779b3787eba844b1177f Mon Sep 17 00:00:00 2001 | ||
From: Marco von Rosenberg <[email protected]> | ||
Date: Thu, 16 Nov 2023 20:32:31 +0100 | ||
Subject: net: phy: broadcom: Wire suspend/resume for BCM54612E | ||
|
||
The BCM54612E ethernet PHY supports IDDQ-SR. | ||
Therefore wire-up the suspend and resume callbacks | ||
to point to bcm54xx_suspend() and bcm54xx_resume(). | ||
|
||
Signed-off-by: Marco von Rosenberg <[email protected]> | ||
Acked-by: Florian Fainelli <[email protected]> | ||
Signed-off-by: David S. Miller <[email protected]> | ||
--- | ||
drivers/net/phy/broadcom.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c | ||
index 3a627105675a4..312a8bb35d780 100644 | ||
--- a/drivers/net/phy/broadcom.c | ||
+++ b/drivers/net/phy/broadcom.c | ||
@@ -941,6 +941,8 @@ static struct phy_driver broadcom_driver | ||
.config_intr = bcm_phy_config_intr, | ||
.handle_interrupt = bcm_phy_handle_interrupt, | ||
.link_change_notify = bcm54xx_link_change_notify, | ||
+ .suspend = bcm54xx_suspend, | ||
+ .resume = bcm54xx_resume, | ||
}, { | ||
.phy_id = PHY_ID_BCM54616S, | ||
.phy_id_mask = 0xfffffff0, |