net: phy: aquantia: add suspend / resume ops for AQR105
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Mon, 23 Dec 2019 08:06:10 +0000 (10:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 23:14:53 +0000 (15:14 -0800)
The suspend/resume code for AQR107 works on AQR105 too.
This patch fixes issues with the partner not seeing the link down
when the interface using AQR105 is brought down.

Fixes: bee8259dd31f ("net: phy: add driver for aquantia phy")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/aquantia_main.c

index 3b29d38..975789d 100644 (file)
@@ -627,6 +627,8 @@ static struct phy_driver aqr_driver[] = {
        .config_intr    = aqr_config_intr,
        .ack_interrupt  = aqr_ack_interrupt,
        .read_status    = aqr_read_status,
+       .suspend        = aqr107_suspend,
+       .resume         = aqr107_resume,
 },
 {
        PHY_ID_MATCH_MODEL(PHY_ID_AQR106),