Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305950 > unrolled thread

[PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0

Started byPeter Ujfalusi <peter.ujfalusi@ti.com>
First post2016-01-11 09:40 +0100
Last post2016-01-13 14:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-01-11 09:40 +0100
    Re: [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry  channel 0 Vinod Koul <vinod.koul@intel.com> - 2016-01-13 14:40 +0100

#1305950 — [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0

FromPeter Ujfalusi <peter.ujfalusi@ti.com>
Date2016-01-11 09:40 +0100
Subject[PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0
Message-ID<qPGb8-8fa-19@gated-at.bofh.it>
edma_alloc_slot was not checking the channel mapping support existence when
slot 0 has been requested (used as entry slot for channel/event 0).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/dma/edma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 50584015e046..d92d65549406 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -484,7 +484,7 @@ static void edma_read_slot(struct edma_cc *ecc, unsigned slot,
  */
 static int edma_alloc_slot(struct edma_cc *ecc, int slot)
 {
-	if (slot > 0) {
+	if (slot >= 0) {
 		slot = EDMA_CHAN_SLOT(slot);
 		/* Requesting entry paRAM slot for a HW triggered channel. */
 		if (ecc->chmap_exist && slot < ecc->num_channels)
-- 
2.6.4

[toc] | [next] | [standalone]


#1308418 — Re: [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0

FromVinod Koul <vinod.koul@intel.com>
Date2016-01-13 14:40 +0100
SubjectRe: [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0
Message-ID<qQtOy-mT-19@gated-at.bofh.it>
In reply to#1305950
On Mon, Jan 11, 2016 at 10:38:01AM +0200, Peter Ujfalusi wrote:
> edma_alloc_slot was not checking the channel mapping support existence when
> slot 0 has been requested (used as entry slot for channel/event 0).

Applied, thanks

-- 
~Vinod

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web