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

Commit ced27781 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Handle MHI MISSION_MODE notification



In order to avoid confusion, instead of returning error, handling
MHI MISSION_MODE with no action.

Change-Id: Ic5382628409c5b50cd38dcb5b624721c7198ffb2
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 9539071a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3131,6 +3131,8 @@ static char *cnss_mhi_notify_status_to_str(enum MHI_CB status)
		return "SYS_ERROR";
	case MHI_CB_FATAL_ERROR:
		return "FATAL_ERROR";
	case MHI_CB_EE_MISSION_MODE:
		return "MISSION_MODE";
	default:
		return "UNKNOWN";
	}
@@ -3181,6 +3183,7 @@ static void cnss_mhi_notify_status(struct mhi_controller *mhi_ctrl, void *priv,

	switch (reason) {
	case MHI_CB_IDLE:
	case MHI_CB_EE_MISSION_MODE:
		return;
	case MHI_CB_FATAL_ERROR:
		set_bit(CNSS_DEV_ERR_NOTIFY, &plat_priv->driver_state);