[PATCH] phy: Add suspend/resume support to SMSC PHYs

Subsystems: ethernet phy library, networking drivers, the rest

STALE6435d

3 messages, 3 authors, 2009-01-22 · open the first message on its own page

[PATCH] phy: Add suspend/resume support to SMSC PHYs

From: Steve Glendinning <hidden>
Date: 2009-01-20 13:43:07

All supported SMSC PHYs implement the standard "power down" bit 11 of
BMCR, so this patch adds support using the generic genphy_{suspend,resume}
functions.

Signed-off-by: Steve Glendinning <redacted>
---
 drivers/net/phy/smsc.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index c05d38d..185dcd9 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -81,6 +81,9 @@ static struct phy_driver lan83c185_driver = {
 	.ack_interrupt	= smsc_phy_ack_interrupt,
 	.config_intr	= smsc_phy_config_intr,
 
+        .suspend	= genphy_suspend,
+        .resume		= genphy_resume,
+
 	.driver		= { .owner = THIS_MODULE, }
 };
 
@@ -102,6 +105,9 @@ static struct phy_driver lan8187_driver = {
 	.ack_interrupt	= smsc_phy_ack_interrupt,
 	.config_intr	= smsc_phy_config_intr,
 
+        .suspend	= genphy_suspend,
+        .resume		= genphy_resume,
+
 	.driver		= { .owner = THIS_MODULE, }
 };
 
@@ -123,6 +129,9 @@ static struct phy_driver lan8700_driver = {
 	.ack_interrupt	= smsc_phy_ack_interrupt,
 	.config_intr	= smsc_phy_config_intr,
 
+        .suspend	= genphy_suspend,
+        .resume		= genphy_resume,
+
 	.driver		= { .owner = THIS_MODULE, }
 };
 
@@ -144,6 +153,9 @@ static struct phy_driver lan911x_int_driver = {
 	.ack_interrupt	= smsc_phy_ack_interrupt,
 	.config_intr	= smsc_phy_config_intr,
 
+        .suspend	= genphy_suspend,
+        .resume		= genphy_resume,
+
 	.driver		= { .owner = THIS_MODULE, }
 };
 
-- 
1.6.0.6

Re: [PATCH] phy: Add suspend/resume support to SMSC PHYs

From: Andy Fleming <hidden>
Date: 2009-01-20 22:05:44

On Tue, Jan 20, 2009 at 7:43 AM, Steve Glendinning
[off-list ref] wrote:
All supported SMSC PHYs implement the standard "power down" bit 11 of
BMCR, so this patch adds support using the generic genphy_{suspend,resume}
functions.

Signed-off-by: Steve Glendinning <redacted>
Acked-by: Andy Fleming <redacted>

Re: [PATCH] phy: Add suspend/resume support to SMSC PHYs

From: David Miller <davem@davemloft.net>
Date: 2009-01-22 00:05:37

From: Steve Glendinning <redacted>
Date: Tue, 20 Jan 2009 13:43:58 +0000
quoted hunk
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index c05d38d..185dcd9 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -81,6 +81,9 @@ static struct phy_driver lan83c185_driver = {
 	.ack_interrupt	= smsc_phy_ack_interrupt,
 	.config_intr	= smsc_phy_config_intr,
 
+        .suspend	= genphy_suspend,
+        .resume		= genphy_resume,
+
Please use tabs, not spaces, here.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help