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

Commit c265a8fa authored by Mahesh Kumar Kalikot Veetil's avatar Mahesh Kumar Kalikot Veetil
Browse files

cnss2: Assert if MHI resume fails



MHI resume failure is a fatal condition. Assert to debug further.

Change-Id: Ic3b835c8e6d75bb6a31b2561735e7c018168f063
CRs-Fixed: 2741967
Signed-off-by: default avatarMahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>
parent 17aa9d79
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1099,6 +1099,10 @@ static int cnss_pci_set_mhi_state(struct cnss_pci_data *pci_priv,
out:
	cnss_pr_err("Failed to set MHI state: %s(%d)\n",
		    cnss_mhi_state_to_str(mhi_state), mhi_state);

	if (mhi_state == CNSS_MHI_RESUME)
		CNSS_ASSERT(0);

	return ret;
}