msn8953 触摸地址假设配置不正确,会进入驱动probe 函数吗

carl.xu 2020-11-10 11:47:46
msn8953 触摸地址假设配置不正确,会进入驱动probe 函数吗
...全文
2528 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
melo_fang 2020-11-11
  • 打赏
  • 举报
回复
地址设置不对只会出现init失败然后返回,probe函数是一定会进的
yoveldf 2020-11-11
  • 打赏
  • 举报
回复
static int __init tlsc6x_init(void) { tlsc_info("%s: ++\n", __func__); return i2c_add_driver(&tlsc6x_driver); } 是的 一般来讲就是这样 ,现在你那执行了init函数 没进probe函数吗?
carl.xu 2020-11-11
  • 打赏
  • 举报
回复
我的理解,只要 msm 8953 dts中的 compatible = "goodix,gt9xx"; 与 static struct of_device_id goodix_match_table[] = { { .compatible = "goodix,gt9xx", }, { }, }; 匹配就应该进去
yoveldf 2020-11-11
  • 打赏
  • 举报
回复
跟下init函数看下
carl.xu 2020-11-11
  • 打赏
  • 举报
回复
确定:如果 msm 8953 的TP的i2c地址出错时, [ 5.801271] <<GTP-INF>>[gt1x_ts_probe:625] GTP Driver Version: V1.4<2015/07/10> [ 5.801274] <<GTP-INF>>[gt1x_ts_probe:626] GTP I2C Address: 0x66 会进入 probe函数
carl.xu 2020-11-11
  • 打赏
  • 举报
回复
[ 5.801271] <<GTP-INF>>[gt1x_ts_probe:625] GTP Driver Version: V1.4<2015/07/10> [ 5.801274] <<GTP-INF>>[gt1x_ts_probe:626] GTP I2C Address: 0x66 [ 5.802296] Goodix-TP 3-0066: Can not lookup pmx_ts_release pinstate -19 [ 5.803034] <<GTP-INF>>[gt1x_reset_guitar:815] GTP RESET! [ 5.918408] i2c-msm-v2 78b7000.i2c: msm_bus_scale_register_client(mstr-id:86):0xe (ok) [ 5.918580] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:5) mode:FIFO slv_addr:0x66 MSTR_STS:0x0d1300c8 OPER:0x00000090 [ 5.918619] <<GTP-ERR>>[_do_i2c_write:433] I2c transfer error! (-107) [ 5.918625] <<GTP-ERR>>[gt1x_init:2353] Reset guitar failed! [ 5.918627] <<GTP-INF>>[gt1x_reset_guitar:815] GTP RESET! [ 6.038107] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:5) mode:FIFO slv_addr:0x66 MSTR_STS:0x0d1300c8 OPER:0x00000090 [ 6.052825] <<GTP-ERR>>[_do_i2c_write:433] I2c transfer error! (-107) [ 6.059233] <<GTP-ERR>>[gt1x_init:2353] Reset guitar failed! [ 6.064855] <<GTP-INF>>[gt1x_reset_guitar:815] GTP RESET! [ 6.188107] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:5) mode:FIFO slv_addr:0x66 MSTR_STS:0x091343c8 OPER:0x00000090 [ 6.202821] <<GTP-ERR>>[_do_i2c_write:433] I2c transfer error! (-107) [ 6.209229] <<GTP-ERR>>[gt1x_init:2353] Reset guitar failed! [ 6.214854] <<GTP-INF>>[gt1x_reset_guitar:815] GTP RESET! [ 6.338099] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:5) mode:FIFO slv_addr:0x66 MSTR_STS:0x091343c8 OPER:0x00000090 [ 6.352811] <<GTP-ERR>>[_do_i2c_write:433] I2c transfer error! (-107) [ 6.359221] <<GTP-ERR>>[gt1x_init:2353] Reset guitar failed! [ 6.364846] <<GTP-INF>>[gt1x_reset_guitar:815] GTP RESET! [ 6.488098] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:5) mode:FIFO slv_addr:0x66 MSTR_STS:0x091343c8 OPER:0x00000090 [ 6.502811] <<GTP-ERR>>[_do_i2c_write:433] I2c transfer error! (-107) [ 6.509219] <<GTP-ERR>>[gt1x_init:2353] Reset guitar failed! [ 6.514845] <<GTP-ERR>>[gt1x_init:2379] Init failed, use default setting [ 6.521660] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:4 tx:2) mode:FIFO slv_addr:0x66 MSTR_STS:0x0d1300c8 OPER:0x00000010 [ 6.537280] <<GTP-ERR>>[_do_i2c_read:391] I2c Transfer error! (-107) [ 6.543597] <<GTP-ERR>>[gt1x_get_chip_type:922] I2c communication error. [ 6.550275] <<GTP-ERR>>[gt1x_init:2389] Get chip type failed! [ 6.556044] <<GTP-ERR>>[gt1x_ts_probe:663] gt1x_init() failed. [ 6.562051] Goodix-TP: probe of 3-0066 failed with error -1
melo_fang 2020-11-11
  • 打赏
  • 举报
回复
probe没有执行应该只有两种可能:
一是device侧资源没有准备好,这里认为就是你这个设备树节点信息没有被正确获取到
二是driver侧驱动没有准备好,认为是config文件没配置到
carl.xu 2020-11-11
  • 打赏
  • 举报
回复
正在使用公板代码测试
胡凯旋 2023-07-17
  • 举报
回复
@carl.xu 解决了吗?是什么原因?

21,595

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧