Merge "qcacld-3.0: Mask sdio host controller interrupts in shutdown"

This commit is contained in:
Linux Build Service Account
2017-07-19 21:51:48 -07:00
committato da Gerrit - the friendly Code Review server

Vedi File

@@ -486,6 +486,13 @@ static void wlan_hdd_shutdown(void)
return; return;
} }
if (!hif_ctx) {
hdd_err("Failed to get HIF context, ignore SSR shutdown");
return;
}
/* mask the host controller interrupts */
hif_mask_interrupt_call(hif_ctx);
if (cds_is_load_or_unload_in_progress()) { if (cds_is_load_or_unload_in_progress()) {
hdd_err("Load/unload in progress, ignore SSR shutdown"); hdd_err("Load/unload in progress, ignore SSR shutdown");
return; return;
@@ -498,10 +505,7 @@ static void wlan_hdd_shutdown(void)
hdd_err("Host is not ready for SSR, attempting anyway"); hdd_err("Host is not ready for SSR, attempting anyway");
if (!QDF_IS_EPPING_ENABLED(cds_get_conparam())) { if (!QDF_IS_EPPING_ENABLED(cds_get_conparam())) {
if (!hif_ctx) hif_disable_isr(hif_ctx);
hdd_err("Invalid hif ctx!");
else
hif_disable_isr(hif_ctx);
hdd_wlan_shutdown(); hdd_wlan_shutdown();
} }
} }