usb: dwc3: ep0: handle non maxpacket aligned transfers > 512
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 27 Jul 2015 06:55:32 +0000 (12:25 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 30 Jul 2015 16:43:35 +0000 (11:43 -0500)
commitc0bd5456a470223e331a9e9e93b4a7425ecfaabb
tree249ca112f22d747e8b37b7e75361359feab3aae6
parent2abd9d5fa60f90cd99801687904f528156d31e18
usb: dwc3: ep0: handle non maxpacket aligned transfers > 512

Use chained TRB mechanism to handle non maxpacket aligned transfers
greater than bounce buffer size. With this the first TRB will be programmed
to receive 'ALIGN(ur->length - maxp, maxp)' data and the second TRB
will be programmed to receive the remaining data using bounce buffer.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c