strangefay 发表于 2015-12-12 15:40:41

lubuntu的i2c驱动貌似与pwm驱动有冲突

本帖最后由 strangefay 于 2015-12-12 15:49 编辑

加在pwm驱动后持续输出

i2c-0, xfer timeout
axp_mfd 0-0034: failed reading from 0x56
i2c-0, xfer timeout
axp_mfd 0-0034: failed reading from 0x78
i2c-0, xfer timeout
axp_mfd 0-0034: failed reading from 0x5e
i2c-0, xfer timeout
axp_mfd 0-0034: failed reading at 0xb9
i2c-0, xfer timeout
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   }

还没来得及研究冲突原因 问下各位 有没有现成的解决方案
没有的话就只能抽时间自己抠代码了
谢谢了



myy 发表于 2016-7-5 17:22:05

页: [1]
查看完整版本: lubuntu的i2c驱动貌似与pwm驱动有冲突