diff mbox series

[net,v2] net: phy: aquantia: add suspend / resume ops for AQR105

Message ID 1577088370-21954-1-git-send-email-madalin.bucur@oss.nxp.com
State Accepted
Delegated to: David Miller
Headers show
Series [net,v2] net: phy: aquantia: add suspend / resume ops for AQR105 | expand

Commit Message

Madalin Bucur (OSS) Dec. 23, 2019, 8:06 a.m. UTC
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>
---

Changes from v1: add Fixes: tag

 drivers/net/phy/aquantia_main.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

David Miller Dec. 26, 2019, 11:15 p.m. UTC | #1
From: Madalin Bucur <madalin.bucur@oss.nxp.com>
Date: Mon, 23 Dec 2019 10:06:10 +0200

> 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>
> ---
> 
> Changes from v1: add Fixes: tag

Applied and queued up for -stable, thanks.
diff mbox series

Patch

diff --git a/drivers/net/phy/aquantia_main.c b/drivers/net/phy/aquantia_main.c
index 3b29d381116f..975789d9349d 100644
--- a/drivers/net/phy/aquantia_main.c
+++ b/drivers/net/phy/aquantia_main.c
@@ -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),