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

Commit 7890706e authored by Hemant Kumar's avatar Hemant Kumar Committed by Bhaumik Bhatt
Browse files

mhi: core: Skip handling MSI0 if MHI register access is not allowed



Driver continues handling of MSI0 interrupt even if MHI register access
is not allowed. By doing so it calls the status call back and performs
early notification for the MHI client. This is not needed when MHI register
access is not allowed. Hence skip the handling in this case and return.

Change-Id: I4639cedfd45166f28379539bccb25acd383faca5
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent f8b00cea
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -1714,7 +1714,11 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev)
	MHI_VERB("Enter\n");

	write_lock_irq(&mhi_cntrl->pm_lock);
	if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) {
	if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) {
		write_unlock_irq(&mhi_cntrl->pm_lock);
		goto exit_intvec;
	}

	state = mhi_get_mhi_state(mhi_cntrl);
	ee = mhi_cntrl->ee;
	mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
@@ -1722,7 +1726,6 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev)
		TO_MHI_EXEC_STR(ee),
		TO_MHI_EXEC_STR(mhi_cntrl->ee),
		TO_MHI_STATE_STR(state));
	}

	if (state == MHI_STATE_SYS_ERR) {
		MHI_ERR("MHI system error detected\n");