v853 开发板 使用 i2cdetect 检查 i2c 设备,报错 incomplete xfer status: 0x48,
-
V853 的所有 i2c 测试都是这样的错误,但是设备又是正常使用的,摄像头也是正常的。
之前在v831上也遇到过这个问题
root@TinaLinux:/# i2cdetect -l i2c-0 i2c twi0 I2C adapter i2c-1 i2c twi1 I2C adapter i2c-2 i2c twi2 I2C adapter i2c-3 i2c twi3 I2C adapter i2c-4 i2c twi4 I2C adapter
测试指令:
root@TinaLinux:/# i2cdetect -y -r 0
报错。
0 1 2 3 4 5 6 7 8 [ 115.384854] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x8) 9 a b c d e f 00: [ 115.397002] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x9) -- [ 115.409100] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0xa) -- -- [ 115.420038] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0xb) -- [ 115.429774] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0xc) -- [ 115.439425] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0xd) -- [ 115.449238] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0xe) -- [ 115.458871] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0xf) -- 10: [ 115.468484] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x10) -- [ 115.478725] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x11) -- [ 115.488403] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x12) -- [ 115.498150] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x13) -- [ 115.507783] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x14) -- [ 115.517525] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x15) -- [ 115.527204] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x16) -- [ 115.536938] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x17) -- [ 115.546696] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x18) -- [ 115.556442] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x19) -- [ 115.566120] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x1a) -- [ 115.575860] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x1b) -- [ 115.585540] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x1c) -- [ 115.595306] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x1d) -- [ 115.604980] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x1e) -- [ 115.614720] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x1f) -- 20: [ 115.624423] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20) -- [ 115.634657] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x21) -- [ 115.644333] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x22) -- [ 115.654066] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x23) -- [ 115.663783] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x24) -- [ 115.673600] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x25) -- [ 115.683283] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x26) -- [ 115.693030] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x27) -- [ 115.702712] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x28) -- [ 115.712452] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x29) -- [ 115.722156] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x2a) -- [ 115.731898] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x2b) -- [ 115.741577] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x2c) -- [ 115.751314] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x2d) -- [ 115.760992] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x2e) -- [ 115.770727] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x2f) -- 30: [ 115.780423] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x30) -- [ 115.790658] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x31) -- [ 115.800404] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x32) -- [ 115.810162] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x33) -- [ 115.819856] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x34) -- [ 115.829599] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x35) -- [ 115.839278] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x36) -- [ 115.849042] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x37) -- [ 115.858714] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x38) -- [ 115.868454] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x39) -- [ 115.878135] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x3a) -- [ 115.887835] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x3b) -- [ 115.897520] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x3c) -- [ 115.907259] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x3d) -- [ 115.916941] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x3e) -- [ 115.926676] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x3f) -- 40: [ 115.936449] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x40) -- [ 115.946696] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x41) -- [ 115.956373] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x42) -- [ 115.966113] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x43) -- [ 115.976119] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x44) -- [ 115.985738] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x45) -- [ 115.995480] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x46) -- [ 116.005160] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x47) -- [ 116.014896] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48) -- [ 116.024570] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x49) -- [ 116.034306] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x4a) -- [ 116.043980] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x4b) -- [ 116.053713] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x4c) -- [ 116.063464] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x4d) -- [ 116.073224] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x4e) -- [ 116.082905] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x4f) -- 50: [ 116.092670] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x50) -- [ 116.102897] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x51) -- [ 116.112603] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x52) -- [ 116.122342] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x53) -- [ 116.132027] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x54) -- [ 116.141761] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x55) -- [ 116.151440] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x56) -- [ 116.161175] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x57) -- [ 116.170853] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x58) -- [ 116.180586] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x59) -- [ 116.190322] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x5a) -- [ 116.200080] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x5b) -- [ 116.209757] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x5c) -- [ 116.219525] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x5d) -- [ 116.229204] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x5e) -- [ 116.238971] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x5f) -- 60: [ 116.248676] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x60) -- [ 116.258902] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x61) -- [ 116.268579] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x62) -- [ 116.278314] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x63) -- [ 116.287964] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x64) -- [ 116.297658] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x65) -- [ 116.307341] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x66) -- [ 116.317073] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x67) -- [ 116.326823] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x68) -- [ 116.336581] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x69) -- [ 116.346327] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x6a) -- [ 116.356087] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x6b) -- [ 116.365767] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x6c) -- [ 116.375534] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x6d) -- [ 116.385214] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x6e) -- [ 116.394960] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x6f) -- 70: [ 116.404662] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x70) -- [ 116.414896] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x71) -- [ 116.424572] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x72) -- [ 116.434313] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x73) -- [ 116.443985] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x74) -- [ 116.453798] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x75) -- [ 116.463480] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x76) -- [ 116.473222] sunxi_i2c_do_xfer()1974 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x77) --
-
又一个被骗的,那个只是提示信息,不是错误信息。
把loglevel的等级提高估计没了。
-
@whycan 学到了,可以关掉这个打印吗
-
@wxid_disxysjskla
可以的,grep一下代码,暴力一点就直接注释起来。文明一点就看下是不是受什么宏控制,把宏定义开启或者关闭。
-
kernel/linux-4.9/drivers/i2c/busses/i2c-sunxi.c
L1973 加了一个判断,drop掉 0x48 错误if(ret != 0x48){ I2C_ERR("[i2c%d] incomplete xfer (status: 0x%x, dev addr: 0x%x)\n", i2c->bus_num, ret, msgs->addr); }
-
@wxid_disxysjskla 建议用 && 来判断,避免丢失了别的错误信息
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号