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)
commitb4cdea9cc324d529ad013a7e75949e1bccc1edc3
tree7b8500bf42fbf1d454baa9984a3ceb8cfb4ba46b
parenteacdd6c223d699938c56e7c991877433454d3ebc
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