Loading drivers/media/platform/msm/camera_v2/sensor/cci/msm_cci.c +9 −4 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ #define CYCLES_PER_MICRO_SEC_DEFAULT 4915 #define CCI_MAX_DELAY 1000000 #define CCI_TIMEOUT msecs_to_jiffies(100) #define CCI_TIMEOUT msecs_to_jiffies(500) /* TODO move this somewhere else */ #define MSM_CCI_DRV_NAME "msm_cci" Loading Loading @@ -569,7 +569,7 @@ static int32_t msm_cci_data_queue(struct cci_device *cci_dev, uint32_t read_val = 0; uint32_t reg_offset; uint32_t val = 0; uint32_t max_queue_size; uint32_t max_queue_size, queue_size = 0; if (i2c_cmd == NULL) { pr_err("%s:%d Failed line\n", __func__, Loading Loading @@ -617,6 +617,11 @@ static int32_t msm_cci_data_queue(struct cci_device *cci_dev, max_queue_size = cci_dev->cci_i2c_queue_info[master][queue]. max_queue_size; if (c_ctrl->cmd == MSM_CCI_I2C_WRITE_SEQ) queue_size = max_queue_size; else queue_size = max_queue_size/2; reg_addr = i2c_cmd->reg_addr; if (sync_en == MSM_SYNC_ENABLE && cci_dev->valid_sync && Loading Loading @@ -648,7 +653,7 @@ static int32_t msm_cci_data_queue(struct cci_device *cci_dev, CDBG("%s line %d CUR_WORD_CNT_ADDR %d len %d max %d\n", __func__, __LINE__, read_val, len, max_queue_size); /* + 1 - space alocation for Report CMD */ if ((read_val + len + 1) > max_queue_size/2) { if ((read_val + len + 1) > queue_size) { if ((read_val + len + 1) > max_queue_size) { rc = msm_cci_process_full_q(cci_dev, master, queue); Loading Loading
drivers/media/platform/msm/camera_v2/sensor/cci/msm_cci.c +9 −4 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ #define CYCLES_PER_MICRO_SEC_DEFAULT 4915 #define CCI_MAX_DELAY 1000000 #define CCI_TIMEOUT msecs_to_jiffies(100) #define CCI_TIMEOUT msecs_to_jiffies(500) /* TODO move this somewhere else */ #define MSM_CCI_DRV_NAME "msm_cci" Loading Loading @@ -569,7 +569,7 @@ static int32_t msm_cci_data_queue(struct cci_device *cci_dev, uint32_t read_val = 0; uint32_t reg_offset; uint32_t val = 0; uint32_t max_queue_size; uint32_t max_queue_size, queue_size = 0; if (i2c_cmd == NULL) { pr_err("%s:%d Failed line\n", __func__, Loading Loading @@ -617,6 +617,11 @@ static int32_t msm_cci_data_queue(struct cci_device *cci_dev, max_queue_size = cci_dev->cci_i2c_queue_info[master][queue]. max_queue_size; if (c_ctrl->cmd == MSM_CCI_I2C_WRITE_SEQ) queue_size = max_queue_size; else queue_size = max_queue_size/2; reg_addr = i2c_cmd->reg_addr; if (sync_en == MSM_SYNC_ENABLE && cci_dev->valid_sync && Loading Loading @@ -648,7 +653,7 @@ static int32_t msm_cci_data_queue(struct cci_device *cci_dev, CDBG("%s line %d CUR_WORD_CNT_ADDR %d len %d max %d\n", __func__, __LINE__, read_val, len, max_queue_size); /* + 1 - space alocation for Report CMD */ if ((read_val + len + 1) > max_queue_size/2) { if ((read_val + len + 1) > queue_size) { if ((read_val + len + 1) > max_queue_size) { rc = msm_cci_process_full_q(cci_dev, master, queue); Loading