diff options
author | Xu Ziyuan <xzy.xu@rock-chips.com> | 2016-07-14 06:52:35 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-26 02:44:19 (GMT) |
commit | 9424f1418377bfb0c95ed36a8854e7fe53436229 (patch) | |
tree | 33768026a1ec458f79ba7b19234b71d27bbd7497 /include/configs | |
parent | 47117882671fbfb5ffa20cd25ec29da5b7143009 (diff) | |
download | u-boot-9424f1418377bfb0c95ed36a8854e7fe53436229.tar.xz |
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>
Diffstat (limited to 'include/configs')
0 files changed, 0 insertions, 0 deletions