usb: musb: musb_cppi41: Fix cppi41_set_dma_mode() for DA8xx
authorAlexandre Bailon <abailon@baylibre.com>
Tue, 10 Oct 2017 03:46:10 +0000 (22:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2017 09:42:51 +0000 (11:42 +0200)
commite10c5b0c773efb8643ee89d387d310584ca30830
tree41e5fef2e9c72681c06080816fc4dcb40eefacfa
parentbfa53e0e366b98185fadb03f7916d1538cb90ebd
usb: musb: musb_cppi41: Fix cppi41_set_dma_mode() for DA8xx

The way to configure the DMA mode on DA8xx is different from DSPS.
Add a new function to configure DMA mode on DA8xx and use a callback
to call the right function based on the platform.

Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_cppi41.c