Commit 307d313f authored by Troy Kisky's avatar Troy Kisky Committed by Kevin Hilman

ARM: DaVinci: Emac: Fix edma_alloc_channel when any channel requested

Before this, if a "noevent" channel was in use, the code
would go into an infinite loop.
Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent f998ccdf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment