wcnss: add API to check if wcnss is undergoing an SSR
Wlan driver should not read registers from wcnss or
try to communicate with the chip when it is undergoing
a subsystem-restart. Added an API with the wcnss platform
driver to check if ssr is in progress, this API will be
used by the wlan driver to protect register access and
other prohibited operations.
Change-Id: Ia0d93e774af126d84dbaabf5c36a2c90fdbd58be
CRs-Fixed: 621974
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
diff --git a/include/linux/wcnss_wlan.h b/include/linux/wcnss_wlan.h
index 5e0b71e..a07db8e 100644
--- a/include/linux/wcnss_wlan.h
+++ b/include/linux/wcnss_wlan.h
@@ -66,6 +66,7 @@
void *wcnss_prealloc_get(unsigned int size);
int wcnss_prealloc_put(void *ptr);
int wcnss_device_ready(void);
+int wcnss_device_is_shutdown(void);
int wcnss_wlan_iris_xo_mode(void);
int wcnss_set_wlan_unsafe_channel(
u16 *unsafe_ch_list, u16 ch_count);