mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Merge "icnss2: Avoid sending fw down uevent to wlan driver twice"
This commit is contained in:
commit
9cd07da8bf
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