* [PATCH V1] arm: tegra: dma: not required to move requestor when stopping.
@ 2012-01-24 8:10 Laxman Dewangan
[not found] ` <1327392649-27605-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Laxman Dewangan @ 2012-01-24 8:10 UTC (permalink / raw)
To: ccross-z5hGa2qSFaRBDgjK7y7TUQ, olof-nZhT3qVonbNeoWH0uzbU5w,
swarren-DDmLM1+adcrQT0dZR+AlfA, linux-lFZ/pmaqli7XmaaqVzeoHQ
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Laxman Dewangan
It is not require to move the requestor of dma to INVALID
option before stopping dma.
Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
arch/arm/mach-tegra/dma.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/arch/arm/mach-tegra/dma.c b/arch/arm/mach-tegra/dma.c
index 998c55d..abea4f6 100644
--- a/arch/arm/mach-tegra/dma.c
+++ b/arch/arm/mach-tegra/dma.c
@@ -52,8 +52,6 @@
#define CSR_ONCE (1<<27)
#define CSR_FLOW (1<<21)
#define CSR_REQ_SEL_SHIFT 16
-#define CSR_REQ_SEL_MASK (0x1F<<CSR_REQ_SEL_SHIFT)
-#define CSR_REQ_SEL_INVALID (31<<CSR_REQ_SEL_SHIFT)
#define CSR_WCOUNT_SHIFT 2
#define CSR_WCOUNT_MASK 0xFFFC
@@ -183,18 +181,12 @@ static void tegra_dma_stop(struct tegra_dma_channel *ch)
static int tegra_dma_cancel(struct tegra_dma_channel *ch)
{
- u32 csr;
unsigned long irq_flags;
spin_lock_irqsave(&ch->lock, irq_flags);
while (!list_empty(&ch->list))
list_del(ch->list.next);
- csr = readl(ch->addr + APB_DMA_CHAN_CSR);
- csr &= ~CSR_REQ_SEL_MASK;
- csr |= CSR_REQ_SEL_INVALID;
- writel(csr, ch->addr + APB_DMA_CHAN_CSR);
-
tegra_dma_stop(ch);
spin_unlock_irqrestore(&ch->lock, irq_flags);
--
1.7.1.1
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1327392649-27605-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* RE: [PATCH V1] arm: tegra: dma: not required to move requestor when stopping. [not found] ` <1327392649-27605-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2012-01-24 20:57 ` Stephen Warren [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF178CB81E5F-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Stephen Warren @ 2012-01-24 20:57 UTC (permalink / raw) To: Laxman Dewangan, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Laxman Dewangan wrote at Tuesday, January 24, 2012 1:11 AM: > It is not require to move the requestor of dma to INVALID > option before stopping dma. > > Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Acked-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Tested-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> I know that Laxman has checked with the HW engineers, and they see no reason to do this. I was originally worried about hung FIFOs preventing an in-progress DMA from completely without the removed code, but according to HW, that isn't a concern. -- nvpublic ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <74CDBE0F657A3D45AFBB94109FB122FF178CB81E5F-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>]
* Re: [PATCH V1] arm: tegra: dma: not required to move requestor when stopping. [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF178CB81E5F-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> @ 2012-01-31 11:02 ` Laxman Dewangan [not found] ` <4F27CA58.2020809-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Laxman Dewangan @ 2012-01-31 11:02 UTC (permalink / raw) To: Stephen Warren Cc: ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Wednesday 25 January 2012 02:27 AM, Stephen Warren wrote: > Laxman Dewangan wrote at Tuesday, January 24, 2012 1:11 AM: >> It is not require to move the requestor of dma to INVALID >> option before stopping dma. >> >> Signed-off-by: Laxman Dewangan<ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > Acked-by: Stephen Warren<swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > Tested-by: Stephen Warren<swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > I know that Laxman has checked with the HW engineers, and they see no > reason to do this. I was originally worried about hung FIFOs preventing > an in-progress DMA from completely without the removed code, but according > to HW, that isn't a concern. > Olaf, Can it be applied if it is OK to you? Thanks, Laxman ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4F27CA58.2020809-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH V1] arm: tegra: dma: not required to move requestor when stopping. [not found] ` <4F27CA58.2020809-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2012-02-01 7:09 ` Olof Johansson 0 siblings, 0 replies; 4+ messages in thread From: Olof Johansson @ 2012-02-01 7:09 UTC (permalink / raw) To: Laxman Dewangan Cc: Stephen Warren, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Tue, Jan 31, 2012 at 04:32:48PM +0530, Laxman Dewangan wrote: > On Wednesday 25 January 2012 02:27 AM, Stephen Warren wrote: > >Laxman Dewangan wrote at Tuesday, January 24, 2012 1:11 AM: > >>It is not require to move the requestor of dma to INVALID > >>option before stopping dma. > >> > >>Signed-off-by: Laxman Dewangan<ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > >Acked-by: Stephen Warren<swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > >Tested-by: Stephen Warren<swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > > >I know that Laxman has checked with the HW engineers, and they see no > >reason to do this. I was originally worried about hung FIFOs preventing > >an in-progress DMA from completely without the removed code, but according > >to HW, that isn't a concern. > > > Olaf, > Can it be applied if it is OK to you? Yep, applied. -Olof ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-01 7:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24 8:10 [PATCH V1] arm: tegra: dma: not required to move requestor when stopping Laxman Dewangan
[not found] ` <1327392649-27605-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-01-24 20:57 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF178CB81E5F-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-01-31 11:02 ` Laxman Dewangan
[not found] ` <4F27CA58.2020809-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-02-01 7:09 ` Olof Johansson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox