CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 5517|回复: 1

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

[复制链接]
发表于 2015-12-12 15:40:41 | 显示全部楼层 |阅读模式
本帖最后由 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
回复

使用道具 举报

发表于 2016-7-5 17:22:05 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-1 22:40 , Processed in 0.025385 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部