summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2014-03-06 09:47:57 +0100
committerStefan Agner <stefan.agner@toradex.com>2014-03-06 17:56:45 +0100
commitc9a3f11be2c99cf2ad883a5edddbc6f3743b0958 (patch)
tree5bd070d977feaaf7ab9bbc5fde5a09744c431256
parentb9815437624e6db85b4122544474073a6a1880dd (diff)
phy/micrel: Add suspend/resume support to Micrel PHYs
All supported Micrel PHYs implement the standard "power down" bit 11 of BMCR, so this patch adds support using the generic genphy_{suspend,resume} functions. Backported patch by Patrice Vilchez, see 1a5465f5d6a23e84ef5c06cb32f3d8c26632f42a
-rw-r--r--drivers/net/phy/micrel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 1d18fdbebf6c..5b1f5ea977b7 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -125,6 +125,8 @@ static struct phy_driver ks8737_driver = {
.read_status = genphy_read_status,
.ack_interrupt = kszphy_ack_interrupt,
.config_intr = ks8737_config_intr,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.driver = { .owner = THIS_MODULE,},
};
@@ -140,6 +142,8 @@ static struct phy_driver ks8041_driver = {
.read_status = genphy_read_status,
.ack_interrupt = kszphy_ack_interrupt,
.config_intr = kszphy_config_intr,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.driver = { .owner = THIS_MODULE,},
};
@@ -155,6 +159,8 @@ static struct phy_driver ks8051_driver = {
.read_status = genphy_read_status,
.ack_interrupt = kszphy_ack_interrupt,
.config_intr = kszphy_config_intr,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.driver = { .owner = THIS_MODULE,},
};
@@ -169,6 +175,8 @@ static struct phy_driver ks8001_driver = {
.read_status = genphy_read_status,
.ack_interrupt = kszphy_ack_interrupt,
.config_intr = kszphy_config_intr,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.driver = { .owner = THIS_MODULE,},
};
@@ -184,6 +192,8 @@ static struct phy_driver ksz9021_driver = {
.read_status = genphy_read_status,
.ack_interrupt = kszphy_ack_interrupt,
.config_intr = ksz9021_config_intr,
+ .suspend = genphy_suspend,
+ .resume = genphy_resume,
.driver = { .owner = THIS_MODULE, },
};