Loading techpack/camera/drivers/cam_sensor_module/cam_cci/cam_cci_core.c 100755 → 100644 +5 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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); Loading Loading @@ -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; } Loading Loading
techpack/camera/drivers/cam_sensor_module/cam_cci/cam_cci_core.c 100755 → 100644 +5 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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); Loading Loading @@ -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; } Loading