Skip to content

Commit

Permalink
phy: Add suspend/resume support to SMSC PHYs
Browse files Browse the repository at this point in the history
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 <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Steve Glendinning authored and David S. Miller committed Jan 22, 2009
1 parent 6f05106 commit c64d2a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/net/phy/smsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, }
};

Expand All @@ -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, }
};

Expand All @@ -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, }
};

Expand All @@ -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, }
};

Expand Down

0 comments on commit c64d2a9

Please sign in to comment.