| Submitter | Steve Glendinning |
|---|---|
| Date | Jan. 20, 2009, 1:43 p.m. |
| Message ID | <1232459038-13156-1-git-send-email-steve.glendinning@smsc.com> |
| Download | mbox | patch |
| Permalink | /patch/19486/ |
| State | Changes Requested |
| Delegated to: | David Miller |
| Headers | show |
Comments
On Tue, Jan 20, 2009 at 7:43 AM, Steve Glendinning <steve.glendinning@smsc.com> 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 <steve.glendinning@smsc.com> Acked-by: Andy Fleming <afleming@freescale.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Steve Glendinning <steve.glendinning@smsc.com> Date: Tue, 20 Jan 2009 13:43:58 +0000 > 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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
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, } };
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> --- drivers/net/phy/smsc.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)