usb: musb: mediatek: set controller DMA ops
Set the controller DMA ops of the controller to be the same as the
mtk-musb driver, otherwise the dummy allocator would be used and
all the USB host transfer would fail.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
diff --git a/drivers/usb/musb/mediatek.c b/drivers/usb/musb/mediatek.c
index d76180d..e218dc0 100644
--- a/drivers/usb/musb/mediatek.c
+++ b/drivers/usb/musb/mediatek.c
@@ -306,6 +306,8 @@
int ret;
u16 busperf3;
+ set_dma_ops(dev, get_dma_ops(dev->parent));
+
glue->musb = musb;
musb->phy = glue->phy;
musb->xceiv = glue->xceiv;