Commit fc87127a authored by David Brownell's avatar David Brownell Committed by Kevin Hilman

edma_alloc_channel() bugfix

Bugfix to the EDMA "allocate a channel with no peripheral event"
code path:  consult the right bitmap, in the right way.  Such
channels are useful for chaining, manual triggering, and QDMA.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent b564da0c
......@@ -485,7 +485,7 @@ int edma_alloc_channel(int channel,
if (channel < 0) {
channel = 0;
for (;;) {
channel = find_next_zero_bit(edma_inuse,
channel = find_next_bit(edma_noevent,
num_channels, channel);
if (channel == num_channels)
return -ENOMEM;
......
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