mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
camera: ois: read 0xC bytes in cci_read
sm6375 cci only support read 0xE bytes each time. if we read 0xE bytes, it will access invalid memory. so change to read 0xC bytes each time. Change-Id: Id59620df4e5cb16bfb31396fdc6fc65c60449600 Signed-off-by: liuwang2 <liuwang2@lenovo.com> Reviewed-on: https://gerrit.mot.com/2155699 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: XiaoFeng Wang <wangxf32@lenovo.com> Reviewed-by: <liuzy55@motorola.com> Reviewed-by: Long Cheng <chengl1@motorola.com> Reviewed-by: Zhichao Chen <chenzc2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
a77c5ebdb3
commit
d296bfbc93
2 changed files with 1 additions and 2 deletions
|
|
@ -337,7 +337,6 @@ static irqreturn_t cam_ois_vsync_irq_thread(int irq, void *data)
|
|||
|
||||
do {
|
||||
// SM6375: CCI_VERSION_1_2_9 can only support read 0xE bytes data one time.
|
||||
// Each loop read max supported bytes(0xE). One packet(62 bytes) need 5 times loop read.
|
||||
for (k = 0; k < PACKET_BYTE/READ_BYTE + 1; k++) {
|
||||
if (k == PACKET_BYTE/READ_BYTE)
|
||||
read_len = PACKET_BYTE%READ_BYTE;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#define PACKET_ADDR 0x70B0
|
||||
#define PACKET_BYTE 62
|
||||
#define MAX_PACKET 3
|
||||
#define READ_BYTE 0xE
|
||||
#define READ_BYTE 0xC
|
||||
|
||||
enum cam_ois_state {
|
||||
CAM_OIS_INIT,
|
||||
|
|
|
|||
Loading…
Reference in a new issue