net: phy: broadcom: Wire suspend/resume for BCM50610 and BCM50610M
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 20 Sep 2021 21:54:15 +0000 (14:54 -0700)
committerDom Cobley <popcornmix@gmail.com>
Fri, 24 Jun 2022 10:20:44 +0000 (11:20 +0100)
These two Ethernet PHYs support IDDQ-SR therefore wire-up the suspend
and resume callbacks to point to bcm54xx_suspend() and bcm54xx_resume().

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c

index 1bff74e..80ce421 100644 (file)
@@ -989,6 +989,8 @@ static struct phy_driver broadcom_drivers[] = {
        .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_BCM50610M,
        .phy_id_mask    = 0xfffffff0,
@@ -1002,6 +1004,8 @@ static struct phy_driver broadcom_drivers[] = {
        .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_BCM57780,
        .phy_id_mask    = 0xfffffff0,