]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9af61e93287e8d2c2ee39abf4da53498192e77ca
tree3bab50b861a6881f1c63128d7c4d35de31ad8eae
parent2c64a7eb0a18fd56401fb2de9527ab55dbf82186
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