]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cxacru: Use a bulk/int URB to access the command endpoint
authorSimon Arlott <simon@fire.lp0.eu>
Wed, 1 Sep 2010 17:37:12 +0000 (18:37 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 4 Sep 2010 00:33:41 +0000 (17:33 -0700)
commite70b64499d957b317af7a6b15f876eef17df9c8d
treed4566411d58755e4872b9426063b10749b2c470e
parent62488946a6a842a74eb99ff24befb37fe45d3a6a
USB: cxacru: Use a bulk/int URB to access the command endpoint

The command endpoint is either a bulk or interrupt endpoint, but using
the wrong type of transfer causes an error if CONFIG_USB_DEBUG is
enabled after commit 2a101213a8c8f1783b948b0af9e5af1443dec92f, which
checks for this mismatch.

Detect which type of endpoint it is and use a bulk/int URB as
appropriate. There are other function calls specifying a bulk pipe,
but usb_clear_halt doesn't use the pipe type (only the endpoint) and
usb_bulk_msg auto-detects interrupt transfers.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: stable <stable@kernel.org> [.34 and newer]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/cxacru.c