Merge tag 'usb-for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
Felipe writes: usb: patches for v4.3 merge window New support for Allwinne SoC on the MUSB driver has been added to the list of glue layers. MUSB also got support for building all DMA engines in one binary; this will be great for distros. DWC3 now has no trace of dev_dbg()/dev_vdbg() usage. We will rely solely on tracing to debug DWC3. There was also a fix for memory corruption with EP0 when maxpacket size transfers are > 512 bytes. Robert's EP capabilities flags is making EP selection a lot simpler. UDCs are now required to set these flags up when adding endpoints to the framework. Other than these, we have the usual set of miscelaneous cleanups and minor fixes. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
@@ -1952,12 +1952,18 @@ static int init_ep(struct bdc *bdc, u32 epnum, u32 dir)
|
||||
ep->bdc = bdc;
|
||||
ep->dir = dir;
|
||||
|
||||
if (dir)
|
||||
ep->usb_ep.caps.dir_in = true;
|
||||
else
|
||||
ep->usb_ep.caps.dir_out = true;
|
||||
|
||||
/* ep->ep_num is the index inside bdc_ep */
|
||||
if (epnum == 1) {
|
||||
ep->ep_num = 1;
|
||||
bdc->bdc_ep_array[ep->ep_num] = ep;
|
||||
snprintf(ep->name, sizeof(ep->name), "ep%d", epnum - 1);
|
||||
usb_ep_set_maxpacket_limit(&ep->usb_ep, EP0_MAX_PKT_SIZE);
|
||||
ep->usb_ep.caps.type_control = true;
|
||||
ep->comp_desc = NULL;
|
||||
bdc->gadget.ep0 = &ep->usb_ep;
|
||||
} else {
|
||||
@@ -1971,6 +1977,9 @@ static int init_ep(struct bdc *bdc, u32 epnum, u32 dir)
|
||||
dir & 1 ? "in" : "out");
|
||||
|
||||
usb_ep_set_maxpacket_limit(&ep->usb_ep, 1024);
|
||||
ep->usb_ep.caps.type_iso = true;
|
||||
ep->usb_ep.caps.type_bulk = true;
|
||||
ep->usb_ep.caps.type_int = true;
|
||||
ep->usb_ep.max_streams = 0;
|
||||
list_add_tail(&ep->usb_ep.ep_list, &bdc->gadget.ep_list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user