msm_actuator.c中i2c操作造成msm_sensor.c的i2c操作超时退出问题。
时间:10-02
整理:3721RD
点击:
MSM8916的平台在msm_actuator.c中添加调用msm_CAMERA_cci_I2C_write_seq发命令控制camera对焦,有时会造成msm_sensor.c中调用msm_camera_cci_i2c_write_table失败,提示等待超时,之后msm_camera_cci_i2c_write_seq也失败了,log如下:msm_camera_cci_i2c_write_seq--success--rc = 0
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
msm_camera_cci_i2c_write_table: line 201 rc = -110
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
msm_camera_cci_i2c_write_seq--success--rc = 0
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
msm_camera_cci_i2c_write_table: line 201 rc = -110
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
(2972) used greatest stack depth: 11368 bytes left
msm_post_event : timeout cannot be negative Line 736
msm_camera_cci_i2c_write_seq--failed--rc = -110
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
请问有哪位大牛了解这个,请帮忙指点一下,非常感谢!
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
msm_camera_cci_i2c_write_table: line 201 rc = -110
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
msm_camera_cci_i2c_write_seq--success--rc = 0
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
msm_camera_cci_i2c_write_table: line 201 rc = -110
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
(2972) used greatest stack depth: 11368 bytes left
msm_post_event : timeout cannot be negative Line 736
msm_camera_cci_i2c_write_seq--failed--rc = -110
msm_cci_i2c_write: wait_for_completion_timeout 617
msm_cci_flush_queue:107 wait timeout
请问有哪位大牛了解这个,请帮忙指点一下,非常感谢!
会不会是打log太多了?
已解决。在出现msm_camera_cci_i2c_write_table失败时,测波形发现SDL一直为低,于是在通讯失败时软件上操作i2c的gpio进行了复位,然后又可以恢复通讯了。