• Alex Elder's avatar
    net: ipa: prevent concurrent replenish · 998c0bd2
    Alex Elder authored
    We have seen cases where an endpoint RX completion interrupt arrives
    while replenishing for the endpoint is underway.  This causes another
    instance of replenishing to begin as part of completing the receive
    transaction.  If this occurs it can lead to transaction corruption.
    
    Use a new flag to ensure only one replenish instance for an endpoint
    executes at a time.
    
    Fixes: 84f9bd12 ("soc: qcom: ipa: IPA endpoints")
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    998c0bd2
ipa_endpoint.c 53.7 KB