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

Commit 195f5d0c authored by Yue Ma's avatar Yue Ma Committed by Gerrit - the friendly Code Review server
Browse files

cnss2: Do not handle MHI device error during driver unloading



There is no need to handle MHI device error and do recovery if
driver is unloading since device is going to shutdown anyway.

Change-Id: Ib4ed5e019786f553302568ac2fb5f7522d631b4d
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 1cef27dd
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1881,6 +1881,11 @@ static void cnss_mhi_notify_status(struct mhi_controller *mhi_ctrl, void *priv,


	cnss_pr_dbg("MHI status cb is called with reason %d\n", reason);
	cnss_pr_dbg("MHI status cb is called with reason %d\n", reason);


	if (test_bit(CNSS_DRIVER_UNLOADING, &plat_priv->driver_state)) {
		cnss_pr_dbg("Driver unload is in progress, ignore device error\n");
		return;
	}

	if (pci_priv->driver_ops && pci_priv->driver_ops->update_status)
	if (pci_priv->driver_ops && pci_priv->driver_ops->update_status)
		pci_priv->driver_ops->update_status(pci_priv->pci_dev,
		pci_priv->driver_ops->update_status(pci_priv->pci_dev,
						    CNSS_FW_DOWN);
						    CNSS_FW_DOWN);