]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72237ce932418f3461e086f4879ed2d7eaa78ad0
treec634437396d62b1672f56b6a1f884374a4980271
parent6df4cf3f55d207226f978efcf8d9939bea3d84de
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