]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dw_dmac: adjust slave_id accordingly to request line base
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Feb 2013 11:52:17 +0000 (13:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Mar 2013 05:01:48 +0000 (10:31 +0530)
commit63a19803a2865c75f0a12dc1e91dc68eb808cdd1
tree650a655ae1fed2676a936c6ea9297d2002d6de0f
parent4900b1396a629fa3e2c4e154d592e430dec3c804
dw_dmac: adjust slave_id accordingly to request line base

On some hardware configurations we have got the request line with the offset.
The patch introduces convert_slave_id() helper for that cases. The request line
base is came from the driver data provided by the platform_device_id table.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h