mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
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 f661c6f8c6, 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 <[email protected]>
Cc: stable <[email protected]> [.34 and newer]
Signed-off-by: Greg Kroah-Hartman <[email protected]>