]> git.itanic.dy.fi Git - linux-stable/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>
Mon, 20 Sep 2010 20:36:22 +0000 (13:36 -0700)
commitaef30a0bfdf6c10565285fff1ae8400b34ee0d81
tree3ee4c3f0f6e5cf11cc9f1aa0bc73c28c9d40b699
parent652d6da0a0a42632330737e1d6d87c82da819fcf
USB: cxacru: Use a bulk/int URB to access the command endpoint

commit 902ffc3c707c1d459ea57428a619a807cbe412f9 upstream.

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 f661c6f8c67bd55e93348f160d590ff9edf08904, 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/cxacru.c