]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: imx-sdma: add a test for imx8mq multi sdma devices
authorAngus Ainslie (Purism) <angus@akkea.ca>
Mon, 28 Jan 2019 16:03:22 +0000 (09:03 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Feb 2019 17:55:51 +0000 (23:25 +0530)
commitde7b7dca8735f720793dae8ad818091309979c39
tree2950c26a40049bb7de88870763c7a2f3660e0791
parent25aaa75df1e659901d77085bcdd25eaabf265688
dmaengine: imx-sdma: add a test for imx8mq multi sdma devices

On i.mx8mq, there are two sdma instances, and the common dma framework
will get a channel dynamically from any available sdma instance whether
it's the first sdma device or the second sdma device. Some IPs like
SAI only work with sdma2 not sdma1. To make sure the sdma channel is from
the correct sdma device, use the node pointer to match.

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c
include/linux/platform_data/dma-imx.h