From 5c97b95b7b76869cfb5e60a945021ceeec5f9cf5 Mon Sep 17 00:00:00 2001 From: Sureshnaidu Laveti Date: Fri, 5 Mar 2021 16:17:57 -0800 Subject: [PATCH] msm: camera: sensor: extend I2C read/write size Extend I2C read/write capability to 20kb CRs-Fixed: 2952585 Change-Id: Ia5465342fd1d434f90e472c3dd5a5275c3fab8cd Signed-off-by: Sureshnaidu Laveti --- drivers/cam_sensor_module/cam_cci/cam_cci_dev.h | 6 +++--- drivers/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/cam_sensor_module/cam_cci/cam_cci_dev.h b/drivers/cam_sensor_module/cam_cci/cam_cci_dev.h index 46cf0315dcab..5e12aa557cd9 100644 --- a/drivers/cam_sensor_module/cam_cci/cam_cci_dev.h +++ b/drivers/cam_sensor_module/cam_cci/cam_cci_dev.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved. */ #ifndef _CAM_CCI_DEV_H_ @@ -50,8 +50,8 @@ #define CCI_READ_MAX 256 #define CCI_READ_MAX_V_1_2 0xE #define CCI_I2C_READ_MAX_RETRIES 3 -#define CCI_I2C_MAX_READ 10240 -#define CCI_I2C_MAX_WRITE 10240 +#define CCI_I2C_MAX_READ 20480 +#define CCI_I2C_MAX_WRITE 20480 #define CCI_I2C_MAX_BYTE_COUNT 65535 #define CAMX_CCI_DEV_NAME "cam-cci-driver" diff --git a/drivers/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h b/drivers/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h index e37314a46571..6cece10403c9 100644 --- a/drivers/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h +++ b/drivers/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved. */ #ifndef _CAM_SENSOR_I2C_H_ @@ -18,7 +18,7 @@ #define I2C_COMPARE_MATCH 0 #define I2C_COMPARE_MISMATCH 1 -#define I2C_REG_DATA_MAX (10*1024) +#define I2C_REG_DATA_MAX (20*1024) /** * @client: CCI client structure