usb: gadget: SS Isoc endpoints use comp_desc->bMaxBurst too
SuperSpeed Isoc endpoints also use the bMaxBurst value from the companion descriptor. See section 9.6.7 in the USB 3.0 spec. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
a850163901
commit
9e878a6bfa
1 changed files with 3 additions and 4 deletions
|
@ -175,13 +175,12 @@ ep_found:
|
||||||
_ep->comp_desc = comp_desc;
|
_ep->comp_desc = comp_desc;
|
||||||
if (g->speed == USB_SPEED_SUPER) {
|
if (g->speed == USB_SPEED_SUPER) {
|
||||||
switch (usb_endpoint_type(_ep->desc)) {
|
switch (usb_endpoint_type(_ep->desc)) {
|
||||||
case USB_ENDPOINT_XFER_BULK:
|
|
||||||
case USB_ENDPOINT_XFER_INT:
|
|
||||||
_ep->maxburst = comp_desc->bMaxBurst;
|
|
||||||
break;
|
|
||||||
case USB_ENDPOINT_XFER_ISOC:
|
case USB_ENDPOINT_XFER_ISOC:
|
||||||
/* mult: bits 1:0 of bmAttributes */
|
/* mult: bits 1:0 of bmAttributes */
|
||||||
_ep->mult = comp_desc->bmAttributes & 0x3;
|
_ep->mult = comp_desc->bmAttributes & 0x3;
|
||||||
|
case USB_ENDPOINT_XFER_BULK:
|
||||||
|
case USB_ENDPOINT_XFER_INT:
|
||||||
|
_ep->maxburst = comp_desc->bMaxBurst;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Do nothing for control endpoints */
|
/* Do nothing for control endpoints */
|
||||||
|
|
Loading…
Add table
Reference in a new issue