USB: Add support for SuperSpeed isoc endpoints
Use the Mult and bMaxBurst values from the endpoint companion descriptor to calculate the max length of an isoc transfer. Add USB_SS_MULT macro to access Mult field of bmAttributes, at Sarah's suggestion. This patch should be queued for the 2.6.36 and 2.6.37 stable trees, since those were the first kernels to have isochronous support for SuperSpeed devices. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: stable@kernel.org
This commit is contained in:
committed by
Sarah Sharp
parent
ba0a4d9aaa
commit
500132a0f2
@ -585,6 +585,8 @@ struct usb_ss_ep_comp_descriptor {
|
||||
#define USB_DT_SS_EP_COMP_SIZE 6
|
||||
/* Bits 4:0 of bmAttributes if this is a bulk endpoint */
|
||||
#define USB_SS_MAX_STREAMS(p) (1 << ((p) & 0x1f))
|
||||
/* Bits 1:0 of bmAttributes if this is an isoc endpoint */
|
||||
#define USB_SS_MULT(p) (1 + ((p) & 0x3))
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
Reference in New Issue
Block a user