usb: dwc2: host: use kmem cache to allocate descriptors
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 20 Nov 2015 10:49:31 +0000 (11:49 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
commit3b5fcc9ac2f4453a5609cc89ac7618b1b27ccb01
tree42d2dd094cb937f1bc8067cce2e4032a517c68aa
parente23b8a54a440a2b8ee5c9dc3eb2099ecf813ef70
usb: dwc2: host: use kmem cache to allocate descriptors

Kmem caches help to get correct boundary for descriptor buffers
which need to be 512 bytes aligned for dwc2 controller.
Two kmem caches are needed for generic descriptors and for
hs isochronous descriptors which doesn't have same size.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hcd.c
drivers/usb/dwc2/hcd_ddma.c