From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Subject: Re: [PATCH V2 01/11] dma: imx-sdma: make channel0 operations atomic Date: Thu, 10 May 2012 14:34:49 +0800 Message-ID: <20120510063446.GA17875@S2101-09.ap.freescale.net> References: <1336563190-19974-1-git-send-email-richard.zhao@freescale.com> <1336563190-19974-2-git-send-email-richard.zhao@freescale.com> <1336622038.1540.285.camel@vkoul-udesk3> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1336622038.1540.285.camel@vkoul-udesk3> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Vinod Koul Cc: Richard Zhao , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, dong.aisheng-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org, w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, timur-KZfg59tc24xl57MIdRCFDg@public.gmane.org, ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, lrg-l0cyMroinI0@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Thu, May 10, 2012 at 09:23:58AM +0530, Vinod Koul wrote: > On Wed, 2012-05-09 at 19:33 +0800, Richard Zhao wrote: > > device_prep_dma_cyclic may be call in audio trigger function which is > > atomic context, so we make it atomic too. > > > > - change channel0 lock to spinlock. > > - Use polling to wait for channel0 finish running. > > > > Signed-off-by: Richard Zhao > Acked By: Vinod Koul > Applied on imx/dt branch with Vinod's ack. Thanks. -- Regards, Shawn From mboxrd@z Thu Jan 1 00:00:00 1970 From: shawn.guo@linaro.org (Shawn Guo) Date: Thu, 10 May 2012 14:34:49 +0800 Subject: [PATCH V2 01/11] dma: imx-sdma: make channel0 operations atomic In-Reply-To: <1336622038.1540.285.camel@vkoul-udesk3> References: <1336563190-19974-1-git-send-email-richard.zhao@freescale.com> <1336563190-19974-2-git-send-email-richard.zhao@freescale.com> <1336622038.1540.285.camel@vkoul-udesk3> Message-ID: <20120510063446.GA17875@S2101-09.ap.freescale.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, May 10, 2012 at 09:23:58AM +0530, Vinod Koul wrote: > On Wed, 2012-05-09 at 19:33 +0800, Richard Zhao wrote: > > device_prep_dma_cyclic may be call in audio trigger function which is > > atomic context, so we make it atomic too. > > > > - change channel0 lock to spinlock. > > - Use polling to wait for channel0 finish running. > > > > Signed-off-by: Richard Zhao > Acked By: Vinod Koul > Applied on imx/dt branch with Vinod's ack. Thanks. -- Regards, Shawn