Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Signed-off-by: Lucas Stach <dev@xxxxxxxxxx> --- drivers/usb/host/ehci-hcd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 7f59774..ef1371f 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -30,7 +30,6 @@ #include <errno.h> #include <of.h> #include <usb/ehci.h> -#include <asm/mmu.h> #include <linux/err.h> #include "ehci.h" @@ -331,7 +330,9 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer, struct qTD *qtd = &ehci->td[i]; if (!qtd->qtd_dma) continue; - dma_flush_range(qtd->qtd_dma, qtd->qtd_dma + qtd->length); + dma_sync_single_for_device((unsigned long)qtd->qtd_dma, + qtd->length, + DMA_BIDIRECTIONAL); } } @@ -372,7 +373,8 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer, struct qTD *qtd = &ehci->td[i]; if (!qtd->qtd_dma) continue; - dma_inv_range(qtd->qtd_dma, qtd->qtd_dma + qtd->length); + dma_sync_single_for_cpu((unsigned long)qtd->qtd_dma, + qtd->length, DMA_BIDIRECTIONAL); } } -- 2.1.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox