Message ID | 20250416100939.282481-1-balsam.chihi@moment.tech |
---|---|
State | New |
Headers | show |
Series | wifi: ath11k: pci: Fix msi_irq crash on driver unload with QCN9074 PCIe WiFi 6 modules | expand |
diff --git a/drivers/net/wireless/ath/ath11k/pci.c b/drivers/net/wireless/ath/ath11k/pci.c index 78444f8ea1535..b9c8963c17047 100644 --- a/drivers/net/wireless/ath/ath11k/pci.c +++ b/drivers/net/wireless/ath/ath11k/pci.c @@ -368,9 +368,12 @@ static void ath11k_pci_sw_reset(struct ath11k_base *ab, bool power_on) } ath11k_mhi_clear_vector(ab); - ath11k_pci_clear_dbg_registers(ab); - ath11k_pci_soc_global_reset(ab); - ath11k_mhi_set_mhictrl_reset(ab); + + if (power_on) { + ath11k_pci_clear_dbg_registers(ab); + ath11k_pci_soc_global_reset(ab); + ath11k_mhi_set_mhictrl_reset(ab); + } } static void ath11k_pci_init_qmi_ce_config(struct ath11k_base *ab)