Home
last modified time | relevance | path

Searched hist:"9424 f1418377bfb0c95ed36a8854e7fe53436229" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Ddwc2_udc_otg_xfer_dma.c9424f1418377bfb0c95ed36a8854e7fe53436229 Thu Jul 14 06:52:35 UTC 2016 Xu Ziyuan <xzy.xu@rock-chips.com> usb: dwc2 : invalidate dcache before starting DMA

Invalidate dcache before starting the DMA to ensure coherency. In case
there are any dirty lines from the DMA buffer in the cache, subsequent
cache-line replacements may corrupt the buffer in memory while the DMA
is still going on. Cache-line replacement can happen if the CPU tries to
bring some other memory locations into the cache while the DMA is going
on.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>