MLK-22284-2 dmaengine: fsl-edma-v3: check dma description before register touch
authorRobin Gong <yibin.gong@nxp.com>
Tue, 7 May 2019 16:13:40 +0000 (00:13 +0800)
committerRobin Gong <yibin.gong@nxp.com>
Tue, 23 Jul 2019 16:50:48 +0000 (00:50 +0800)
commit96db1103a8f0917c3c65b3129a58bd4ead7f378e
tree9ccdbc7d6164acf0fef16517d3d3707258be4252
parent1a0833a4b8db6a054b654b109313278bdbc11ef2
MLK-22284-2 dmaengine: fsl-edma-v3: check dma description before register touch

Check dma desscription firstly to ignore any unexpected interrupt
after channel terminate, otherwise, still have chance to touch channel
register whose power has been already off.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com>
(cherry picked from commit fd073e017e317006a4c254ca5ae3ea17b6f32502)
drivers/dma/fsl-edma-v3.c