usb: dwc3: gadget: allocate bounce buffer for unaligned xfers
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 5 Jan 2017 12:46:52 +0000 (14:46 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:12 +0000 (11:04 +0200)
commit905dc04ea796e77e003c5020a3f9f1509cc7a275
tree7c67cb4d2e0f4717043803028426790e07ff7aa9
parente49d3cf4926af0ff713238acd31514e50f1004ec
usb: dwc3: gadget: allocate bounce buffer for unaligned xfers

Allocate a coherent buffer of 1024 bytes (size of a single superspeed
bulk packet) to serve as bounce buffer for an extra TRB needed to align
transfers to wMaxPacketSize.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c