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

Commit 38a02dab authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Handle properly for MHI sync power up timeout



For MHI sync power up, timeout means MHI power up has succeeded,
but timed out for firmware mission mode event. Hence make sure
the corresponding power up bit is set properly.

Change-Id: I8487f7bfba2499a10ecd2efebf6424e86a77e049
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 079f3c30
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -967,6 +967,11 @@ static int cnss_pci_set_mhi_state(struct cnss_pci_data *pci_priv,
		break;
	case CNSS_MHI_POWER_ON:
		ret = mhi_sync_power_up(pci_priv->mhi_ctrl);
		/* -ETIMEDOUT means MHI power up has succeeded but timed out
		 * for firmware mission mode event, so handle it properly.
		 */
		if (ret == -ETIMEDOUT)
			ret = 0;
		break;
	case CNSS_MHI_POWER_OFF:
		mhi_power_down(pci_priv->mhi_ctrl, true);