]> 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)
commitb2be474181bbc111b535ab2e31c9c69f88ff3a82
tree7b8500bf42fbf1d454baa9984a3ceb8cfb4ba46b
parent3395f99827e7acbc1eb2697bd13befe8f438b0e4
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