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

Commit 08c205a5 authored by Mohammed Nayeem Ur Rahman's avatar Mohammed Nayeem Ur Rahman Committed by Gerrit - the friendly Code Review server
Browse files

msm: adsprpc: Add support for recover session on DSP



Added new case in FASTRPC_IOCTL_CONTROL
which makes call to DSP and clean the process.

Change-Id: I5603ec4414d1fa5b3aa9d286e2bab3a28203b1c4
Acked-by: default avatarTadakamalla Krishnaiah <ktadakam@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Nayeem Ur Rahman <mohara@codeaurora.org>
parent a25b0313
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5236,6 +5236,9 @@ static int fastrpc_internal_control(struct fastrpc_file *fl,
			fl->ws_timeout = cp->pm.timeout;
		fastrpc_pm_awake(fl, gcinfo[fl->cid].secure);
		break;
	case FASTRPC_CONTROL_DSPPROCESS_CLEAN:
		(void)fastrpc_release_current_dsp_process(fl);
		break;
	default:
		err = -EBADRQC;
		break;
+2 −0
Original line number Diff line number Diff line
@@ -394,6 +394,8 @@ enum fastrpc_control_type {
	FASTRPC_CONTROL_KALLOC		=	3,
	FASTRPC_CONTROL_WAKELOCK	=	4,
	FASTRPC_CONTROL_PM		=	5,
/* Clean process on DSP */
	FASTRPC_CONTROL_DSPPROCESS_CLEAN	=	6,
};

struct fastrpc_ctrl_latency {