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>
Fri, 29 Mar 2013 23:04:07 +0000 (04:34 +0530)
commitbce95c63ef1bcf528ea45c41505eb4c21560d92d
tree4ca2d02533a8ebf1341a9b81a4f046ca651ab0d6
parentf73bb9b35596e045feacdf4d2fd32cfb087e2411
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