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

Commit fb33bcbb authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi
Browse files

msm: mhi_dev: Do not error out if unable to send MSI



Do not return error if MSI is not yet enabled by the host
in device reboot scenario. Host will check the mhi status
and issue a reset if syserr state is set.

Change-Id: Ie2204d8b750f2939ac7dd6571cbe31ef211e2053
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent 83d88163
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2402,7 +2402,14 @@ static int mhi_dev_recover(struct mhi_dev *mhi)
			rc = ep_pcie_trigger_msi(mhi->phandle, bhi_intvec);
			if (rc) {
				pr_err("%s: error sending msi\n", __func__);
				return rc;
				/*
				 * MSIs are not enabled by host yet, set
				 * mhistatus to syserr and exit.
				 * Expected mhi host driver behaviour
				 * is to check the device state and
				 * issue a reset after it finds the device.
				 */
				goto mask_intr;
			}
		}

@@ -2433,6 +2440,7 @@ static int mhi_dev_recover(struct mhi_dev *mhi)
			return -EINVAL;
		}
	}
mask_intr:
	/*
	 * Now mask the interrupts so that the state machine moves
	 * only after IPA is ready