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

Commit 30cbaab6 authored by Naman Padhiar's avatar Naman Padhiar
Browse files

icnss: Remove check for driver unloading in-progress



During SSR/PDR, icnss send FW_DOWN uevent to host driver
to indicate firmware is down. If host driver is unloading
in-progress, this event will not be sent. Remove check for
unloading in-progress before sending uevent.

Change-Id: Ie118e048a7ffbf61d791513a3c1e751c03a2b12c
Signed-off-by: default avatarNaman Padhiar <npadhiar@codeaurora.org>
parent 23a2d71f
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -593,8 +593,7 @@ static irqreturn_t fw_crash_indication_handler(int irq, void *ctx)
		set_bit(ICNSS_FW_DOWN, &priv->state);
		icnss_ignore_fw_timeout(true);

		if (test_bit(ICNSS_FW_READY, &priv->state) &&
		    !test_bit(ICNSS_DRIVER_UNLOADING, &priv->state)) {
		if (test_bit(ICNSS_FW_READY, &priv->state)) {
			fw_down_data.crashed = true;
			icnss_call_driver_uevent(priv, ICNSS_UEVENT_FW_DOWN,
						 &fw_down_data);
@@ -1448,8 +1447,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
		icnss_ignore_fw_timeout(true);

		fw_down_data.crashed = !!notif->crashed;
		if (test_bit(ICNSS_FW_READY, &priv->state) &&
		    !test_bit(ICNSS_DRIVER_UNLOADING, &priv->state))
		if (test_bit(ICNSS_FW_READY, &priv->state))
			icnss_call_driver_uevent(priv,
						 ICNSS_UEVENT_FW_DOWN,
						 &fw_down_data);
@@ -1476,8 +1474,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	event_data->crashed = notif->crashed;

	fw_down_data.crashed = !!notif->crashed;
	if (test_bit(ICNSS_FW_READY, &priv->state) &&
	    !test_bit(ICNSS_DRIVER_UNLOADING, &priv->state))
	if (test_bit(ICNSS_FW_READY, &priv->state))
		icnss_call_driver_uevent(priv,
					 ICNSS_UEVENT_FW_DOWN,
					 &fw_down_data);
@@ -1599,8 +1596,7 @@ static int icnss_service_notifier_notify(struct notifier_block *nb,
		icnss_ignore_fw_timeout(true);

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