• Sinan Kaya's avatar
    dmaengine: qcom_hidma: protect common data structures · 0e858f8d
    Sinan Kaya authored
    When MSI interrupts are supported, error and the transfer interrupt can
    come from multiple processor contexts.
    
    Each error interrupt is an MSI interrupt. If the channel is disabled by
    the first error interrupt, the remaining error interrupts will gracefully
    return in the interrupt handler.
    
    If an error is observed while servicing the completions in success case,
    the posting of the completions will be aborted as soon as channel disabled
    state is observed. The error interrupt handler will take it from there and
    finish the remaining completions. We don't want to create multiple success
    and error messages to be delivered to the client in mixed order.
    Signed-off-by: default avatarSinan Kaya <okaya@codeaurora.org>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    0e858f8d
hidma_ll.c 22.9 KB