]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cxacru: ignore error trying to start ADSL in atm_start
authorSimon Arlott <simon@fire.lp0.eu>
Fri, 11 May 2007 06:04:13 +0000 (23:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Jun 2007 23:24:31 +0000 (16:24 -0700)
commit37a064317d90dcd2446b01b98acde37c54821d0b
treec05b79256fa4e9ffb80c0cba4a12cc377176dd92
parent79243a0f74a8803cb872f0168b47c33e005d85c1
USB: cxacru: ignore error trying to start ADSL in atm_start

The sysfs adsl_status attribute ignores (aside from returning -EIO to the
user) any error sending a START/STOP command to the device and there is at
least one firmware which never sends a response but appears to work
regardless.  Therefore atm_start should also continue if an error is received
so that such firmware is usable.

The official Conexant driver doesn't expect a reply either but this is for
another device (E2 router) and a commonly used firmware does respond.

Also, there is no point in changing -ECONNRESET to -ETIMEDOUT since nothing
ever checks for either of these values.

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