smsc95xx: enable power saving mode during system suspend
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 28 Sep 2012 00:07:11 +0000 (00:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2012 22:34:58 +0000 (18:34 -0400)
commitb5a044758672b6dc775fdab007337b47a54576f4
tree3bab50b861a6881f1c63128d7c4d35de31ad8eae
parentc954679cf76095b0a1232c3dad604a9066d78ab1
smsc95xx: enable power saving mode during system suspend

This patch enables the device to enter its lowest power SUSPEND2
state during system suspend, instead of staying up using full power.

Patch updated to not add two pointers to .suspend & .resume.

Patch updated to replace BUG_ON with WARN_ON_ONCE and return.

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