Before this, if a "noevent" channel was in use, the code would go into an infinite loop.
Signed-off-by: Troy Kisky <troy.ki...@boundarydevices.com> diff --git a/arch/arm/mach-davinci/dma.c b/arch/arm/mach-davinci/dma.c index 9427c80..1f58631 100644 --- a/arch/arm/mach-davinci/dma.c +++ b/arch/arm/mach-davinci/dma.c @@ -492,6 +492,7 @@ int edma_alloc_channel(int channel, return -ENOMEM; if (!test_and_set_bit(channel, edma_inuse)) break; + channel++; } } else if (channel >= num_channels) { return -EINVAL; -- 1.5.4.3 _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source