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

Commit b10eb7e7 authored by YUE CHEN's avatar YUE CHEN Committed by Gerrit - the friendly Code Review server
Browse files

msm: ais: fix cci read return value issue



Return 0 if not waiting timeout for both rd_done ack
and reset ack.

Change-Id: I1c82908761a8855bdeaa6e24eebeaff991183ce1
Signed-off-by: default avatarYUE CHEN <yueche@codeaurora.org>
parent 37c2499e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1513,14 +1513,16 @@ static int32_t cam_cci_read(struct v4l2_subdev *sd,
	} else {
		//If rd_done is complete with NACK wait until RESET_ACK
		//is received.
		rc = 0;
		if (cci_dev->cci_master_info[master].status == -EINVAL) {
			rc = wait_for_completion_timeout(
			&cci_dev->cci_master_info[master].reset_complete,
			CCI_TIMEOUT);
		}
			if (rc <= 0) {
				CAM_ERR(CAM_CCI,
					"wait_for_completion_timeout rc = %d, rc");
			} else
				rc = 0;
		}
	}