mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
icnss2: Avoid sending fw down uevent to wlan driver twice
Avoid sending fw down uevent to wlan driver twice for one ssr/pdr. Change-Id: I9c99b16c3760ef7b432df16b2f326db39371e3c3 Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
This commit is contained in:
parent
37cdb7af00
commit
00410da99c
1 changed files with 4 additions and 0 deletions
|
|
@ -417,6 +417,7 @@ static irqreturn_t fw_crash_indication_handler(int irq, void *ctx)
|
|||
icnss_ignore_fw_timeout(true);
|
||||
|
||||
if (test_bit(ICNSS_FW_READY, &priv->state)) {
|
||||
clear_bit(ICNSS_FW_READY, &priv->state);
|
||||
fw_down_data.crashed = true;
|
||||
icnss_call_driver_uevent(priv, ICNSS_UEVENT_FW_DOWN,
|
||||
&fw_down_data);
|
||||
|
|
@ -1508,6 +1509,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
|
|||
icnss_ignore_fw_timeout(true);
|
||||
|
||||
if (test_bit(ICNSS_FW_READY, &priv->state)) {
|
||||
clear_bit(ICNSS_FW_READY, &priv->state);
|
||||
fw_down_data.crashed = !!notif->crashed;
|
||||
icnss_call_driver_uevent(priv,
|
||||
ICNSS_UEVENT_FW_DOWN,
|
||||
|
|
@ -1537,6 +1539,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
|
|||
|
||||
fw_down_data.crashed = !!notif->crashed;
|
||||
if (test_bit(ICNSS_FW_READY, &priv->state)) {
|
||||
clear_bit(ICNSS_FW_READY, &priv->state);
|
||||
fw_down_data.crashed = !!notif->crashed;
|
||||
icnss_call_driver_uevent(priv,
|
||||
ICNSS_UEVENT_FW_DOWN,
|
||||
|
|
@ -1665,6 +1668,7 @@ event_post:
|
|||
icnss_ignore_fw_timeout(true);
|
||||
|
||||
if (test_bit(ICNSS_FW_READY, &priv->state)) {
|
||||
clear_bit(ICNSS_FW_READY, &priv->state);
|
||||
fw_down_data.crashed = event_data->crashed;
|
||||
icnss_call_driver_uevent(priv,
|
||||
ICNSS_UEVENT_FW_DOWN,
|
||||
|
|
|
|||
Loading…
Reference in a new issue