From mboxrd@z Thu Jan 1 00:00:00 1970 From: shawn.guo@freescale.com (Shawn Guo) Date: Tue, 19 Jul 2011 12:02:16 +0800 Subject: [PATCH 1/1] ARM: mxs-dma: reset after disable channel In-Reply-To: <1311048596-19932-1-git-send-email-b29396@freescale.com> References: <1311048596-19932-1-git-send-email-b29396@freescale.com> Message-ID: <20110719040215.GF3838@S2100-06.ap.freescale.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote: > We met some channels in abnormal state after disable. > Reset it to get a clean state. > > Signed-off-by: Dong Aisheng > Cc: Vinod Koul > Cc: Shawn Guo > --- Acked-by: Shawn Guo Hi Vinod, Please consider to merge it for v3.1. The mxs audio driver needs the fix. Regards, Shawn > drivers/dma/mxs-dma.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c > index 88aad4f..5a24010 100644 > --- a/drivers/dma/mxs-dma.c > +++ b/drivers/dma/mxs-dma.c > @@ -535,6 +535,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, > switch (cmd) { > case DMA_TERMINATE_ALL: > mxs_dma_disable_chan(mxs_chan); > + mxs_dma_reset_chan(mxs_chan); > break; > case DMA_PAUSE: > mxs_dma_pause_chan(mxs_chan); > -- > 1.7.0.4 > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >