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

Commit 42ead6fd authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ais: fix cci read return value issue"

parents 28b49793 b10eb7e7
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;
		}
	}