]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/iwlwifi/pcie/trans.c
iwlwifi: pcie: claim ownership on the device after stop_device()
[karo-tx-linux.git] / drivers / net / wireless / iwlwifi / pcie / trans.c
index a3b63b77b4baa5475912185b8772d5163a7923d1..7d7f05ebe05d3365b5c3e19aba3c6dc94cdd2e94 100644 (file)
@@ -994,6 +994,9 @@ static void iwl_trans_pcie_stop_device(struct iwl_trans *trans)
                clear_bit(STATUS_RFKILL, &trans->status);
        if (hw_rfkill != was_hw_rfkill)
                iwl_trans_pcie_rf_kill(trans, hw_rfkill);
+
+       /* re-take ownership to prevent other users from stealing the deivce */
+       iwl_pcie_prepare_card_hw(trans);
 }
 
 void iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state)