ath79: add support for Huawei AP5030DN
[openwrt/openwrt.git] / target / linux / generic / backport-6.1 / 734-v6.8-net-phy-bcm54612e-add-suspend-resume.patch
1 From 380b50ae3a04222334a3779b3787eba844b1177f Mon Sep 17 00:00:00 2001
2 From: Marco von Rosenberg <marcovr@selfnet.de>
3 Date: Thu, 16 Nov 2023 20:32:31 +0100
4 Subject: net: phy: broadcom: Wire suspend/resume for BCM54612E
5
6 The BCM54612E ethernet PHY supports IDDQ-SR.
7 Therefore wire-up the suspend and resume callbacks
8 to point to bcm54xx_suspend() and bcm54xx_resume().
9
10 Signed-off-by: Marco von Rosenberg <marcovr@selfnet.de>
11 Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14 drivers/net/phy/broadcom.c | 2 ++
15 1 file changed, 2 insertions(+)
16
17 --- a/drivers/net/phy/broadcom.c
18 +++ b/drivers/net/phy/broadcom.c
19 @@ -941,6 +941,8 @@ static struct phy_driver broadcom_driver
20 .config_intr = bcm_phy_config_intr,
21 .handle_interrupt = bcm_phy_handle_interrupt,
22 .link_change_notify = bcm54xx_link_change_notify,
23 + .suspend = bcm54xx_suspend,
24 + .resume = bcm54xx_resume,
25 }, {
26 .phy_id = PHY_ID_BCM54616S,
27 .phy_id_mask = 0xfffffff0,