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

Commit bcc4402e authored by Haritha Chintalapati's avatar Haritha Chintalapati Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: sensor: Update I2C read/write size" into camera-kernel.lnx.4.0

parents 695e0730 a6a80b5c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -58,8 +58,8 @@
/* Max bytes that can be read per CCI read transaction */
#define CCI_READ_MAX 256
#define CCI_I2C_READ_MAX_RETRIES 3
#define CCI_I2C_MAX_READ 8192
#define CCI_I2C_MAX_WRITE 8192
#define CCI_I2C_MAX_READ 10240
#define CCI_I2C_MAX_WRITE 10240
#define CCI_I2C_MAX_BYTE_COUNT 65535

#define CAMX_CCI_DEV_NAME "cam-cci-driver"
+2 −2
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, 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       (8*1024)
#define I2C_REG_DATA_MAX (10*1024)

/**
 * @client: CCI client structure
+1 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 */

#include "cam_sensor_cmn_header.h"
#include "cam_sensor_i2c.h"
#include "cam_sensor_io.h"

#define I2C_REG_DATA_MAX       (8*1024)
#define I2C_REG_MAX_BUF_SIZE   8

static int32_t cam_qup_i2c_rxdata(