* [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0
@ 2016-01-11 8:38 Peter Ujfalusi
2016-01-13 13:39 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Peter Ujfalusi @ 2016-01-11 8:38 UTC (permalink / raw)
To: vinod.koul, dan.j.williams
Cc: dmaengine, linux-kernel, linux-omap, linux-arm-kernel, nsekhar, tony
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0
2016-01-11 8:38 [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0 Peter Ujfalusi
@ 2016-01-13 13:39 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2016-01-13 13:39 UTC (permalink / raw)
To: Peter Ujfalusi
Cc: dan.j.williams, dmaengine, linux-kernel, linux-omap,
linux-arm-kernel, nsekhar, tony
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-13 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-11 8:38 [PATCH] dmaengine: edma: Fix paRAM slot allocation for entry channel 0 Peter Ujfalusi
2016-01-13 13:39 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).