Merge "icnss: Check for FW_READY state before sending uevent in PD notifier"

This commit is contained in:
Linux Build Service Account 2018-01-18 00:12:29 -08:00 committed by Gerrit - the friendly Code Review server
commit 8e47769c92

View File

@ -1220,8 +1220,7 @@ event_post:
clear_bit(ICNSS_HOST_TRIGGERED_PDR, &priv->state);
fw_down_data.crashed = event_data->crashed;
if (test_bit(ICNSS_DRIVER_PROBED, &priv->state) &&
!test_bit(ICNSS_PD_RESTART, &priv->state))
if (test_bit(ICNSS_FW_READY, &priv->state))
icnss_call_driver_uevent(priv, ICNSS_UEVENT_FW_DOWN,
&fw_down_data);
icnss_driver_event_post(ICNSS_DRIVER_EVENT_PD_SERVICE_DOWN,