Skip to content
Snippets Groups Projects
Commit 98097068 authored by Han Xu's avatar Han Xu Committed by Leonard Crestez
Browse files

MLK-19897: dma: mxs-dma: update mxs-dma filter function to 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: default avatarHan Xu <han.xu@nxp.com>
(cherry picked from commit c0f60c87e5af4d8dddb81055fb6ce1477a615de0)
(Vipul: Fixed merge conflicts)
Signed-off-by: default avatarVipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: default avatarSrikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
parent 1231d7a2
No related merge requests found
...@@ -769,6 +769,12 @@ static bool mxs_dma_filter_fn(struct dma_chan *chan, void *fn_param) ...@@ -769,6 +769,12 @@ static bool mxs_dma_filter_fn(struct dma_chan *chan, void *fn_param)
struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma; struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
int chan_irq; int chan_irq;
if (strcmp(chan->device->dev->driver->name, "mxs-dma"))
return false;
if (!mxs_dma)
return false;
if (mxs_dma->dma_device.dev->of_node != param->of_node) if (mxs_dma->dma_device.dev->of_node != param->of_node)
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment