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

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

msm: adsprpc: do not check sensor pd status in ioctl call



Do not check sensor pd status in ioctl call to avoid false
failures when the process init finished successfully but the
static pd status flag was not set yet by the PDR callback when
the next ioctl call was made.

Change-Id: I1ff4f19bbb676224ac61a97dbb0c7b2f5e301e85
Acked-by: default avatarThyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent 648dc229
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3670,8 +3670,6 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,

	err = fastrpc_check_pd_status(fl,
			AUDIO_PDR_SERVICE_LOCATION_CLIENT_NAME);
	err |= fastrpc_check_pd_status(fl,
			SENSORS_PDR_SERVICE_LOCATION_CLIENT_NAME);
	if (err)
		goto bail;