net: phy: adin: hook genphy_{suspend, resume} into the driver
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 16 Aug 2019 13:10:00 +0000 (16:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Aug 2019 18:56:25 +0000 (11:56 -0700)
The chip supports standard suspend/resume via BMCR reg.
Hook these functions into the `adin` driver.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/adin.c

index 6d7af47439570e9da322f5e047cbb9ff601ff231..fc0148ba4b942045fadd7b4ae26dd9176d01388f 100644 (file)
@@ -26,6 +26,8 @@ static struct phy_driver adin_driver[] = {
                .config_init    = adin_config_init,
                .config_aneg    = genphy_config_aneg,
                .read_status    = genphy_read_status,
+               .resume         = genphy_resume,
+               .suspend        = genphy_suspend,
        },
        {
                PHY_ID_MATCH_MODEL(PHY_ID_ADIN1300),
@@ -33,6 +35,8 @@ static struct phy_driver adin_driver[] = {
                .config_init    = adin_config_init,
                .config_aneg    = genphy_config_aneg,
                .read_status    = genphy_read_status,
+               .resume         = genphy_resume,
+               .suspend        = genphy_suspend,
        },
 };