]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: musb: cppi41: Enable in device-TX mode
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 13 Aug 2013 17:38:24 +0000 (19:38 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 13 Aug 2013 19:21:42 +0000 (14:21 -0500)
Since the musb-gadget code now calls the dma engine properly it is
possible to enable it for the TX path in device mode.
AM335x Advisory 1.0.13 says that we may lose the toggle bit on multiple
RX transfers. There is a workaround in host mode but none in device mode
and therefore RX transfers are disabled.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c

index a74259ea03069d45e74d0ebb4b791a4f2e851b79..e64701d15401bc42ebb2bd800ec48d848242ec3b 100644 (file)
@@ -362,6 +362,9 @@ static int cppi41_is_compatible(struct dma_channel *channel, u16 maxpacket,
                WARN_ON(1);
                return 1;
        }
+       if (cppi41_channel->is_tx)
+               return 1;
+       /* AM335x Advisory 1.0.13. No workaround for device RX mode */
        return 0;
 }