usb: dwc3: Add chained TRB support for ep0
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 23 Feb 2015 13:10:15 +0000 (18:40 +0530)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:48:10 +0000 (05:48 +0200)
commit8d488f3e16f1a7f2b6b3d1f8420b0871123e56f8
treefd4e89f8c447d958809113cc7dfbc5cb461f4268
parent1f78f8fedab10f7b30559d6db9b142be5b6daf75
usb: dwc3: Add chained TRB support for ep0

dwc3 can do only max packet aligned transfers. So in case request length
is not max packet aligned and is bigger than DWC3_EP0_BOUNCE_SIZE
two chained TRBs is required to handle the transfer.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c