avr32: at32ap700x: don't rely on default DMA masters
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Aug 2014 17:29:13 +0000 (20:29 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 11 Sep 2014 06:18:12 +0000 (11:48 +0530)
In future we are going to remove the defaults of AHB masters from dw_dmac
driver. It means each user have to supply proper source and destination masters
by itself explicitly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
arch/avr32/mach-at32ap/at32ap700x.c

index 2a1aa712c6e7173d635ba347d4b209e15265d203..ec7be287a97e04d57f0c518c67c85634332fbbb0 100644 (file)
@@ -1360,6 +1360,8 @@ at32_add_device_mci(unsigned int id, struct mci_platform_data *data)
                                | DWC_CFGH_DST_PER(1));
        slave->sdata.cfg_lo &= ~(DWC_CFGL_HS_DST_POL
                                | DWC_CFGL_HS_SRC_POL);
+       slave->sdata.src_master = 1;
+       slave->sdata.dst_master = 0;
 
        data->dma_slave = slave;