|
本帖最后由 strangefay 于 2015-12-12 15:49 编辑
加在pwm驱动后持续输出
[ 521.040000] i2c-0, xfer timeout
[ 521.040000] axp_mfd 0-0034: failed reading from 0x56
[ 526.050000] i2c-0, xfer timeout
[ 526.050000] axp_mfd 0-0034: failed reading from 0x78
[ 531.060000] i2c-0, xfer timeout
[ 531.060000] axp_mfd 0-0034: failed reading from 0x5e
[ 536.070000] i2c-0, xfer timeout
[ 536.070000] axp_mfd 0-0034: failed reading at 0xb9
[ 541.080000] i2c-0, xfer timeout
[ 541.080000] axp_mfd 0-0034: failed reading at 0x30
查看了一下应该是在drivers / i2c / busses / i2c-sunxi.c 下的809行左右
/* sleep and wait, do the transfer at interrupt handler ,timeout = 5*HZ */
805 timeout = wait_event_timeout(i2c->wait, i2c->msg_num == 0, i2c->adap.timeout);
806 /* return code,if(msg_idx == num) succeed */
807 ret = i2c->msg_idx;
808
809 if (timeout == 0){
810 //dev_dbg(i2c->adap.dev, "timeout \n");
811 pr_warning("i2c-%d, xfer timeout\n", i2c->bus_num);
812 ret = -ETIME;
813 }
还没来得及研究冲突原因 问下各位 有没有现成的解决方案
没有的话就只能抽时间自己抠代码了
谢谢了
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|