UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 09:50:35 +0000 (17:50 +0800)
commitd94b804e9b6ee23d4bea8528f4a5bf9057b652dd
tree216ce41c485370e0a260a1b4b914b85941050914
parent62b583f61b06a2dc1d6f2f9908aa46229cdaada1
UPSTREAM: 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.

Change-Id: I369dfb990bcef4aa0cb16b00539011bcab9732df
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 95105a998dff0747327f11708ea24480ee0eca54)
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