MLK-16104-2 dma: imx-sdma: add index for multi sdma devices case
authorRobin Gong <yibin.gong@nxp.com>
Mon, 31 Jul 2017 08:44:32 +0000 (16:44 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:13 +0000 (15:36 -0500)
commit7ab52e64a6b8045d50fb45c3c168cfd40ace7105
tree13b86053837fb2dd304a31e97ae12e974a625362
parent4b9940dae542b882717ddd8762e25bf953e003eb
MLK-16104-2 dma: imx-sdma: add index for multi sdma devices case

On i.mx8mscale, there are two sdma instances here, and common dma
frameowrk will get channel dynamicly from any available channel whatever
it's from the first sdma device or the second sdma device. But actually,
some IP like SAI only work in sdma2 not sdma1. To make sure get sdma
channel from the right sdma device, add index to match.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
drivers/dma/imx-sdma.c
include/linux/platform_data/dma-imx.h