Commit c64d2a9a authored by Steve Glendinning's avatar Steve Glendinning Committed by David S. Miller

phy: Add suspend/resume support to SMSC PHYs

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: default avatarSteve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f051069
...@@ -81,6 +81,9 @@ static struct phy_driver lan83c185_driver = { ...@@ -81,6 +81,9 @@ static struct phy_driver lan83c185_driver = {
.ack_interrupt = smsc_phy_ack_interrupt, .ack_interrupt = smsc_phy_ack_interrupt,
.config_intr = smsc_phy_config_intr, .config_intr = smsc_phy_config_intr,
.suspend = genphy_suspend,
.resume = genphy_resume,
.driver = { .owner = THIS_MODULE, } .driver = { .owner = THIS_MODULE, }
}; };
...@@ -102,6 +105,9 @@ static struct phy_driver lan8187_driver = { ...@@ -102,6 +105,9 @@ static struct phy_driver lan8187_driver = {
.ack_interrupt = smsc_phy_ack_interrupt, .ack_interrupt = smsc_phy_ack_interrupt,
.config_intr = smsc_phy_config_intr, .config_intr = smsc_phy_config_intr,
.suspend = genphy_suspend,
.resume = genphy_resume,
.driver = { .owner = THIS_MODULE, } .driver = { .owner = THIS_MODULE, }
}; };
...@@ -123,6 +129,9 @@ static struct phy_driver lan8700_driver = { ...@@ -123,6 +129,9 @@ static struct phy_driver lan8700_driver = {
.ack_interrupt = smsc_phy_ack_interrupt, .ack_interrupt = smsc_phy_ack_interrupt,
.config_intr = smsc_phy_config_intr, .config_intr = smsc_phy_config_intr,
.suspend = genphy_suspend,
.resume = genphy_resume,
.driver = { .owner = THIS_MODULE, } .driver = { .owner = THIS_MODULE, }
}; };
...@@ -144,6 +153,9 @@ static struct phy_driver lan911x_int_driver = { ...@@ -144,6 +153,9 @@ static struct phy_driver lan911x_int_driver = {
.ack_interrupt = smsc_phy_ack_interrupt, .ack_interrupt = smsc_phy_ack_interrupt,
.config_intr = smsc_phy_config_intr, .config_intr = smsc_phy_config_intr,
.suspend = genphy_suspend,
.resume = genphy_resume,
.driver = { .owner = THIS_MODULE, } .driver = { .owner = THIS_MODULE, }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment