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

Commit a83f674f authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu
Browse files

msm: adsprpc: Remove remote mappings after PD is up



Currently before staticPD on QDSP is up, remote mappings are
being removed. Instead, remove the mappings after staticPD is up.

Change-Id: I10a37b4c840dbd830f7b8897aabbf8681329b74c
Acked-by: default avatarVishnu Karthik D <vikarthi@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent 06c68199
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3057,6 +3057,11 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
	VERIFY(err, cid == fl->cid);
	if (err)
		goto bail;
	if (!me->channel[fl->cid].spd[session].ispdup &&
		me->channel[fl->cid].spd[session].pdrhandle) {
		err = -ENOTCONN;
		goto bail;
	}
	if (me->channel[fl->cid].spd[session].pdrcount !=
		me->channel[fl->cid].spd[session].prevpdrcount) {
		err = fastrpc_mmap_remove_ssr(fl);
@@ -3066,11 +3071,6 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
		me->channel[fl->cid].spd[session].prevpdrcount =
				me->channel[fl->cid].spd[session].pdrcount;
	}
	if (!me->channel[fl->cid].spd[session].ispdup &&
		me->channel[fl->cid].spd[session].pdrhandle) {
		err = -ENOTCONN;
		goto bail;
	}
bail:
	return err;
}