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

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

cnss2: Adjust FW ready timeout based on QMI timeout



Set FW ready timeout two times of QMI timeout.

Change-Id: Ibb56aeb48c40dbb7c9ebdd8dec6f616cc7613ff2
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent c3e24c63
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -944,6 +944,7 @@ static int cnss_qca6290_powerup(struct cnss_plat_data *plat_priv)
{
	int ret = 0;
	struct cnss_pci_data *pci_priv = plat_priv->bus_priv;
	unsigned int timeout;

	if (!pci_priv) {
		cnss_pr_err("pci_priv is NULL!\n");
@@ -980,8 +981,11 @@ static int cnss_qca6290_powerup(struct cnss_plat_data *plat_priv)
		if (ret)
			goto stop_mhi;
	} else {
		timeout = cnss_get_qmi_timeout();
		cnss_pr_dbg("QMI timeout is %u ms\n", timeout);
		if (timeout)
			mod_timer(&plat_priv->fw_ready_timer,
			  jiffies + msecs_to_jiffies(FW_READY_TIMEOUT));
				  jiffies + msecs_to_jiffies(timeout << 1));
	}

	return 0;