• Alexandre Bailon's avatar
    dmaengine: cppi41: Fix teardown warnings · 4f68b09e
    Alexandre Bailon authored
    During the teardown of a RX channel, because there is only one
    completion queue available for RX channel, descriptor of another
    channel may be popped which will cause 2 warnings:
    - the first one because we popped a wrong descriptor
      (neither the channel's descriptor, nor the teardown descriptor).
    - the second one happen during the teardown of another channel,
      because we can't find the channel descriptor
      (that is, the one that caused the first warning).
    To avoid that, use one free queue instead of a transmit completion queue.
    
    Note that fix doesn't fix all the teardown warnings:
    I still get some when I run some corner case.
    Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    4f68b09e
cppi41.c 29.3 KB