Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3115fece authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Check platform state before sending uevent"

parents 207c3f6e 2ea2c896
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1238,7 +1238,11 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	event_data->crashed = notif->crashed;

	fw_down_data.crashed = !!notif->crashed;
	icnss_call_driver_uevent(priv, ICNSS_UEVENT_FW_DOWN, &fw_down_data);
	if (test_bit(ICNSS_FW_READY, &priv->state) &&
	    !test_bit(ICNSS_DRIVER_UNLOADING, &priv->state))
		icnss_call_driver_uevent(priv,
					 ICNSS_UEVENT_FW_DOWN,
					 &fw_down_data);

	icnss_driver_event_post(ICNSS_DRIVER_EVENT_PD_SERVICE_DOWN,
				ICNSS_EVENT_SYNC, event_data);