1
0
Fork 0

MLK-19897: dma: mxs-dma: filter out the unrelated dma channels

update mxs-dma filter function to firstly filter the dma channels only
for mxs-dma, rather than checking unrelated dma chans in following code.

Signed-off-by: Han Xu <han.xu@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Han Xu 2019-08-07 16:20:02 -05:00 committed by Dong Aisheng
parent 219d54332a
commit 016b719166
1 changed files with 6 additions and 0 deletions

View File

@ -729,6 +729,12 @@ static bool mxs_dma_filter_fn(struct dma_chan *chan, void *fn_param)
struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
int chan_irq;
if (strcmp(chan->device->dev->driver->name, "mxs-dma"))
return false;
if (!mxs_dma)
return false;
if (chan->chan_id != param->chan_id)
return false;