smsc75xx: enable power saving mode during system suspend
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 28 Sep 2012 00:57:52 +0000 (00:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2012 22:35:47 +0000 (18:35 -0400)
commit16c79a04e262e51c790af4b074963dd592c617f2
treee137efbead23c429a6f9d7db220e502272345c8e
parent8762cec8d9d06eddc9a80293a230d6e073568815
smsc75xx: enable power saving mode during system suspend

This patch instructs the device to enter its lowest power SUSPEND2
state during system suspend.

This patch also explicitly wakes the device after resume, which
should address reports of the device not automatically coming
back after system suspend:

Patch updated to change BUG_ON to WARN_ON_ONCE.

http://code.google.com/p/chromium-os/issues/detail?id=31871

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c