USB: cxacru: ADSL state management
authorSimon Arlott <simon@fire.lp0.eu>
Thu, 26 Apr 2007 07:38:05 +0000 (00:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:41 +0000 (13:28 -0700)
commit6a02c996bce297a782432e29c69268356e97fadd
treea68fc295a2a133b0cfdc7b3c2724a1cb0c9db9c0
parent7d5e1dd40bd5ced457be178e4f0b1267a3df2142
USB: cxacru: ADSL state management

The device has commands to start/stop the ADSL function, so this adds a
sysfs attribute to allow it to be started/stopped/restarted.  It also stops
polling the device for status when the ADSL function is disabled.

There are no problems with sending multiple start or stop commands, even
with a fast loop of them the device still works.  There is no need to
protect the restart process from further user actions while it's waiting
for 1.5s.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/cxacru.c