Skip to content

Commit c64d2a9

Browse files
Steve Glendinningdavem330
authored andcommitted
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: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6f05106 commit c64d2a9

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎drivers/net/phy/smsc.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ static struct phy_driver lan83c185_driver = {
8181
.ack_interrupt = smsc_phy_ack_interrupt,
8282
.config_intr = smsc_phy_config_intr,
8383

84+
.suspend = genphy_suspend,
85+
.resume = genphy_resume,
86+
8487
.driver = { .owner = THIS_MODULE, }
8588
};
8689

@@ -102,6 +105,9 @@ static struct phy_driver lan8187_driver = {
102105
.ack_interrupt = smsc_phy_ack_interrupt,
103106
.config_intr = smsc_phy_config_intr,
104107

108+
.suspend = genphy_suspend,
109+
.resume = genphy_resume,
110+
105111
.driver = { .owner = THIS_MODULE, }
106112
};
107113

@@ -123,6 +129,9 @@ static struct phy_driver lan8700_driver = {
123129
.ack_interrupt = smsc_phy_ack_interrupt,
124130
.config_intr = smsc_phy_config_intr,
125131

132+
.suspend = genphy_suspend,
133+
.resume = genphy_resume,
134+
126135
.driver = { .owner = THIS_MODULE, }
127136
};
128137

@@ -144,6 +153,9 @@ static struct phy_driver lan911x_int_driver = {
144153
.ack_interrupt = smsc_phy_ack_interrupt,
145154
.config_intr = smsc_phy_config_intr,
146155

156+
.suspend = genphy_suspend,
157+
.resume = genphy_resume,
158+
147159
.driver = { .owner = THIS_MODULE, }
148160
};
149161

0 commit comments

Comments
 (0)