From: Simon Arlott Date: Wed, 1 Sep 2010 17:37:12 +0000 (+0100) Subject: USB: cxacru: Use a bulk/int URB to access the command endpoint X-Git-Tag: v2.6.36-rc4~90^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=902ffc3c707c1d459ea57428a619a807cbe412f9;p=pandora-kernel.git 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 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 Cc: stable [.34 and newer] Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed