qcacmn: Check if FW or host in recovery before invoking assert

Force wake request is sent before register write. If this req
fails check if FW is down or host is in recovery before
asserting.

Change-Id: I6d31b1f95b68ae4e462f59ed32ed933de55cacae
CRs-Fixed: 2601364
This commit is contained in:
Nisha Menon
2020-01-10 16:31:17 -08:00
gecommit door nshrivas
bovenliggende 21ade1514e
commit 4d77312b6d
3 gewijzigde bestanden met toevoegingen van 28 en 10 verwijderingen

Bestand weergeven

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -219,5 +219,13 @@ bool qdf_is_drv_connected(void);
void qdf_register_drv_connected_callback(qdf_is_drv_connected_callback
is_drv_connected);
/**
* qdf_check_state_before_panic() - API to check if FW is down
* or driver is in recovery before calling assert
*
* Return: none
*/
void qdf_check_state_before_panic(void);
#endif /*_QDF_PLATFORM_H*/