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

Commit d562f175 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Use correct timer for forcing FW assert



When force FW assert, it should use RDDM timer instead of FW
boot timer since it expects FW entering RDDM mode.

Change-Id: Ic8498b0f3c23dc494267571da7f627eace9f91bd
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent d267b6d1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@

#define WAKE_MSI_NAME			"WAKE"

#define FW_ASSERT_TIMEOUT		5000
#define DEV_RDDM_TIMEOUT		5000

#ifdef CONFIG_CNSS_EMULATION
@@ -3830,8 +3829,8 @@ int cnss_pci_force_fw_assert_hdlr(struct cnss_pci_data *pci_priv)
	}

	if (!test_bit(CNSS_DEV_ERR_NOTIFY, &plat_priv->driver_state)) {
		mod_timer(&plat_priv->fw_boot_timer,
			  jiffies + msecs_to_jiffies(FW_ASSERT_TIMEOUT));
		mod_timer(&pci_priv->dev_rddm_timer,
			  jiffies + msecs_to_jiffies(DEV_RDDM_TIMEOUT));
	}

	return 0;