dmaengine: dw: apply both HS interfaces and remove slave_id usage
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Aug 2014 17:29:15 +0000 (20:29 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 11 Sep 2014 06:18:13 +0000 (11:48 +0530)
commit8950052029874a6738552debb45077c596e90e6b
tree083a3e015b95ec9415f9ff99638935c9cf5481c9
parent7e1e2f27c5508518e58e5cbb11e26cbb815f4c56
dmaengine: dw: apply both HS interfaces and remove slave_id usage

Instead of one request line member let's use both source and destination ones.
Usually we have no such hardware except Atmel MMC controller found on AVR32
platform (see arch/avr32/mach-at32ap/at32ap700x.c and
drivers/mmc/host/atmel-mci.c).

This patch removes slave_id usage since it'll be removed from the generic
structure in later. This breaks the non-ACPI / non-DT cases for the users of
the driver, i.e. SPI and HSUART. However, these cases mean only PCI enumerated
devices for now, which is anyway broken (considering more than one DMA
controller in the system) and this patch series is intended to fix that
eventually.

The ACPI and DT cases shall be aware of the channel direction when setting
request lines, but this is a minor problem that would be addressed in future.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c
drivers/dma/dw/platform.c
drivers/dma/dw/regs.h