usb: dwc2: gadget: add unaligned buffers support
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Fri, 30 Jan 2015 08:09:31 +0000 (09:09 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 30 Jan 2015 16:31:13 +0000 (10:31 -0600)
commit7d24c1b5a77c71d885fca047d1f25721f6b366e7
treed795985ed06c67578f3df6971f0785d84149a1ab
parentd7c747c590a98d2d75e4c2c97c875f0dcd5743ee
usb: dwc2: gadget: add unaligned buffers support

When using DMA, dwc2 requires buffers to be 4 bytes aligned. Use
bounce buffers if they are not.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c