ソースを参照

msm: camera: cci: Fix invalid queue size for cci

The queue size of cci hw version 1.2.9 is 64 and 16. Due to wrong
conditional check the cci queue size is assigned wrongly for cci version
1.2.9. This change corrects the cci queue size for cci version 1.2.9.

CRs-Fixed: 2736884
Change-Id: I60508fadec89831f3b877d64631b7da6304c030d
Signed-off-by: Tony Lijo Jose <[email protected]>
Tony Lijo Jose 5 年 前
コミット
c515d1506d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      drivers/cam_sensor_module/cam_cci/cam_cci_soc.c

+ 1 - 1
drivers/cam_sensor_module/cam_cci/cam_cci_soc.c

@@ -17,7 +17,7 @@ static int cam_cci_init_master(struct cci_device *cci_dev,
 	soc_info = &cci_dev->soc_info;
 	base = soc_info->reg_map[0].mem_base;
 
-	if (cci_dev->hw_version != CCI_VERSION_1_2_9) {
+	if (cci_dev->hw_version == CCI_VERSION_1_2_9) {
 		max_queue_0_size = CCI_I2C_QUEUE_0_SIZE_V_1_2;
 		max_queue_1_size = CCI_I2C_QUEUE_1_SIZE_V_1_2;
 	} else {