summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorYuanyuan Liu <yuanliu@codeaurora.org>2017-12-15 16:20:37 -0800
committerYuanyuan Liu <yuanliu@codeaurora.org>2017-12-20 10:53:14 -0800
commitdaee03cd523688c19ea53052731464633723637a (patch)
tree712f1c9c7f661efab850ed9161d6148572915138 /include/soc
parente1fe906b59110ddb0847f30085db84434637f045 (diff)
icnss: Do not send uevent when driver is unloading
If modem crashed during wlan driver unloading, icnss driver will call driver uevent callback to send FW down uevent when it receives BEFORE_SHUTDOWN notification. If wlan driver is de-initialized just before the callback is called, kernel will panic as driver's context is freed. This can be avoid by not sending uevent when wlan host driver is unloading. Instead, icnss driver will provide an API to host driver to check if WLAN FW is down or not. CRs-Fixed: 2161425 Change-Id: I569fd85366522606ececeda74df85c51b9b2fc28 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/qcom/icnss.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/qcom/icnss.h b/include/soc/qcom/icnss.h
index 7915841b17ea..4fff429dc0b2 100644
--- a/include/soc/qcom/icnss.h
+++ b/include/soc/qcom/icnss.h
@@ -153,6 +153,7 @@ extern int icnss_wlan_set_dfs_nol(const void *info, u16 info_len);
extern int icnss_wlan_get_dfs_nol(void *info, u16 info_len);
extern bool icnss_is_qmi_disable(struct device *dev);
extern bool icnss_is_fw_ready(void);
+extern bool icnss_is_fw_down(void);
extern int icnss_set_wlan_mac_address(const u8 *in, const uint32_t len);
extern u8 *icnss_get_wlan_mac_address(struct device *dev, uint32_t *num);
extern int icnss_trigger_recovery(struct device *dev);