usb: dwc2: host: avoid usage of dma_alloc_coherent with irqs disabled
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 20 Nov 2015 10:49:29 +0000 (11:49 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
commit95105a998dff0747327f11708ea24480ee0eca54
treec634437396d62b1672f56b6a1f884374a4980271
parentfbb9e22b15ad3c9a98c66bad801b4d1366e8bf20
usb: dwc2: host: avoid usage of dma_alloc_coherent with irqs disabled

Use Streaming DMA mappings to handle cache coherency of frame list and
descriptor list. Cache are always flushed before controller access it
or before cpu access it.

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.c
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hcd.c
drivers/usb/dwc2/hcd.h
drivers/usb/dwc2/hcd_ddma.c