]> git.baikalelectronics.ru Git - kernel.git/commit
smsc75xx: add support for USB dynamic autosuspend
authorSteve Glendinning <steve.glendinning@shawell.net>
Wed, 28 Nov 2012 05:59:49 +0000 (05:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2012 16:17:32 +0000 (11:17 -0500)
commit0c20e56575080ca8b37cd8cd2b9903d4e051b072
tree7b8500bf42fbf1d454baa9984a3ceb8cfb4ba46b
parentd9bda1238cac7e6080206a16b18ee16bd101f47f
smsc75xx: add support for USB dynamic autosuspend

This patch adds support for USB dynamic autosuspend to the
smsc75xx driver.  This saves virtually no power in the USB
device but enables power savings in upstream hosts and
the host CPU.

Note currently Linux doesn't automatically enable this
functionality by default for devices so to test this:

 echo auto > /sys/bus/usb/devices/2-1.2/power/control

where 2-1.2 is the USB bus address of the LAN7500.

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