USB: omap_udc: fix rejection of out transfers when DMA is used

Commit 387f869d25 ("usb: gadget: u_ether: conditionally align
transfer size") started aligning transfer size only if requested,
breaking omap_udc DMA mode. Set quirk_ep_out_aligned_size to restore
the old behaviour.

Fixes: 387f869d25 ("usb: gadget: u_ether: conditionally align transfer size")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
Aaro Koskinen 2018-11-25 00:17:08 +02:00 committed by Felipe Balbi
parent 2c2322fbca
commit 069caf5950
1 changed files with 1 additions and 0 deletions

View File

@ -2642,6 +2642,7 @@ omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv)
udc->gadget.speed = USB_SPEED_UNKNOWN; udc->gadget.speed = USB_SPEED_UNKNOWN;
udc->gadget.max_speed = USB_SPEED_FULL; udc->gadget.max_speed = USB_SPEED_FULL;
udc->gadget.name = driver_name; udc->gadget.name = driver_name;
udc->gadget.quirk_ep_out_aligned_size = 1;
udc->transceiver = xceiv; udc->transceiver = xceiv;
/* ep0 is special; put it right after the SETUP buffer */ /* ep0 is special; put it right after the SETUP buffer */