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

Commit 5b008b9e authored by Praveen Chokkaku's avatar Praveen Chokkaku Committed by Harshit Agarwal
Browse files

Synchronize codes for Oneplus Nord OxygenOS 10.5.4

Fix sensor init failure

Change-Id: I020c881e8f2d0327e3157e7f17acac8acda83fb0
parent 974dac78
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1223,6 +1223,9 @@ static int32_t cam_cci_read(struct v4l2_subdev *sd,
	mutex_unlock(&cci_dev->cci_master_info[master].mutex);

	mutex_lock(&cci_dev->cci_master_info[master].mutex_q[queue]);

	// read operation done only in Q1
	reinit_completion(&cci_dev->cci_master_info[master].rd_done);
	/*
	 * Call validate queue to make sure queue is empty before starting.
	 * If this call fails, don't proceed with i2c_read call. This is to
@@ -1594,7 +1597,6 @@ static int32_t cam_cci_read_bytes(struct v4l2_subdev *sd,
	 * THRESHOLD irq's, we reinit the threshold wait before
	 * we load the burst read cmd.
	 */
	reinit_completion(&cci_dev->cci_master_info[master].rd_done);
	reinit_completion(&cci_dev->cci_master_info[master].th_complete);

	CAM_DBG(CAM_CCI, "Bytes to read %u", read_bytes);
@@ -1798,7 +1800,8 @@ int32_t cam_cci_core_cfg(struct v4l2_subdev *sd,
	}

	cci_ctrl->status = rc;

	if(rc == 0)
		CAM_DBG(CAM_CCI, "master = %d, cmd = %d successful", master, cci_ctrl->cmd);
	return rc;
}