Skip to content

Commit

Permalink
usb: dwc3: gadget: Support up to max stream id
Browse files Browse the repository at this point in the history
DWC3 IPs can use the maximum stream id (up to 2^16) specified by the
USB 3.x specs. Don't limit to stream id 2^15 only. Note that this does
not reflect the number of concurrent streams the controller handles
internally.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
  • Loading branch information
Thinh Nguyen authored and Felipe Balbi committed Oct 2, 2020
1 parent 2338484 commit e0a93d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,7 +2527,7 @@ static int dwc3_gadget_init_in_endpoint(struct dwc3_ep *dep)

usb_ep_set_maxpacket_limit(&dep->endpoint, size);

dep->endpoint.max_streams = 15;
dep->endpoint.max_streams = 16;
dep->endpoint.ops = &dwc3_gadget_ep_ops;
list_add_tail(&dep->endpoint.ep_list,
&dwc->gadget->ep_list);
Expand Down Expand Up @@ -2576,7 +2576,7 @@ static int dwc3_gadget_init_out_endpoint(struct dwc3_ep *dep)
size /= 3;

usb_ep_set_maxpacket_limit(&dep->endpoint, size);
dep->endpoint.max_streams = 15;
dep->endpoint.max_streams = 16;
dep->endpoint.ops = &dwc3_gadget_ep_ops;
list_add_tail(&dep->endpoint.ep_list,
&dwc->gadget->ep_list);
Expand Down

0 comments on commit e0a93d9

Please sign in to comment.