• Alex Elder's avatar
    net: ipa: retry modem stop if busy · 7c80e838
    Alex Elder authored
    
    
    The IPA driver remove callback, ipa_remove(), calls ipa_modem_stop()
    if the setup stage of initialization is complete.  If a concurrent
    call to ipa_modem_start() or ipa_modem_stop() has begin but not
    completed, ipa_modem_stop() can return an error (-EBUSY).
    
    The next patch adds a driver shutdown callback, which will simply
    call ipa_remove().  We really want our shutdown callback to clean
    things up.  So add a single retry to the ipa_modem_stop() call in
    ipa_remove() after a short (millisecond) delay.  This offers no
    guarantee the shutdown will complete successfully, but we'll at
    least try a little harder before giving up.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    7c80e838
ipa_main.c 25.7 KB