Skip to content

Commit

Permalink
REVERTME: usb: dwc3: gadget: skip endpoints ep[18]{in,out}
Browse files Browse the repository at this point in the history
Intel Edison's SoC uses these endpoints for tracing and they shouldn't
be used for normal transfers, we need to skip them.

This hack will be reverted once we have a proper binding for
describing such endpoints.

• 1 High BW Bulk IN (IN#1) (RTIT)
• 1 1KB BW Bulk IN (IN#8)+ 1 1KB BW Bulk OUT (Run Control) (OUT#8)

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
Felipe Balbi authored and andy-shev committed May 17, 2021
1 parent 3b8a293 commit 1ecc0ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2765,6 +2765,16 @@ static int dwc3_gadget_init_endpoints(struct dwc3 *dwc, u8 total)
for (epnum = 0; epnum < total; epnum++) {
int ret;

/*
* REVERTME: This is a temporary hack to get Intel
* Edison's USB working with mainline kernel. This hack
* will be reverted once we come to conclusion about how
* to describe Trace endpoints which should be ignored
* by dwc3.
*/
if (epnum == 3 || (epnum >> 1) == 8)
continue;

ret = dwc3_gadget_init_endpoint(dwc, epnum);
if (ret)
return ret;
Expand Down

0 comments on commit 1ecc0ad

Please sign in to comment.