mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacmn: Add check to avoid panic if FW is down
In order to avoid panic in hif_pci_runtime_pm_warn(), call qdf_is_fw_down() to check if fw is down. If fw is down, return without panicking. Change-Id: I3fd3e0334220c1cf3ae6b3ec3fd5b1ede1705013 CRs-Fixed: 2664133
This commit is contained in:
parent
a8c046d68b
commit
528d6ccd70
1 changed files with 5 additions and 0 deletions
|
|
@ -1004,6 +1004,11 @@ static void hif_pci_runtime_pm_warn(struct hif_pci_softc *sc, const char *msg)
|
|||
ctx->name, ctx->timeout);
|
||||
}
|
||||
|
||||
if (qdf_is_fw_down()) {
|
||||
hif_err("fw is down");
|
||||
return;
|
||||
}
|
||||
|
||||
QDF_DEBUG_PANIC("hif_pci_runtime_pm_warn");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue