allwinner-zh / linux-3.4-sunxi

kernel 3.4 for sunxi platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft5x_ts Occasional not loading

tnk3r opened this issue · comments

Here is a working Dmesg:

[ 7.731528] ===========================ft5x_ts_init=====================
[ 7.736088] ctp_fetch_sysconfig_para.
[ 7.745493] ctp_fetch_sysconfig_para: after: ctp_twi_addr is 0x38, dirty_addr_buf: 0x38. dirty_addr_buf[1]: 0xfffe
[ 7.749723] ctp_fetch_sysconfig_para: ctp_twi_id is 3.
[ 7.754182] ctp_fetch_sysconfig_para: screen_max_x = 800.
[ 7.758623] ctp_fetch_sysconfig_para: screen_max_y = 480.
[ 7.763066] ctp_fetch_sysconfig_para: revert_x_flag = 0.
[ 7.767464] ctp_fetch_sysconfig_para: revert_y_flag = 0.
[ 7.772203] ctp_fetch_sysconfig_para: exchange_x_y_flag = 0.
[ 7.779922] ft5x_ts_init: after fetch_sysconfig_para: normal_i2c: 0x38. normal_i2c[1]: 0xfffe
[ 7.785219] ctp_init_platform_resource: tp_reset request gpio fail!
[ 7.790702] ctp_init_platform_resource: No power port feature present.
[ 7.792230] ctp_wakeup.
[ 7.848058] incomplete xfer (0x20)
[ 7.850541] incomplete xfer (0x20)
[ 7.852936] incomplete xfer (0x20)
[ 7.858881] ctp_detect: Detected chip ft5x_ts at adapter 3, address 0x38
[ 7.862260] ====ft5x_ts_probe begin=====.
[ 7.869659] input: ft5x_ts as /devices/platform/sunxi-i2c.3/i2c-3/3-0038/input/input2
[ 7.874563] ctp_set_irq_mode: config gpio to int mode.
[ 7.880419] ctp_set_irq_mode, 225: gpio_int_info, port = 8, port_num = 9.
[ 7.882413] INTERRUPT CONFIG
[ 7.885093] ==ft5x_ts_probe over =
[ 7.952858] UMP<2>: Inserting UMP device driver. Compiled: Dec 8 2014, time: 18:20:44
[ 7.959953] UMP<2>: Using OS memory backend, allocation limit: 134217728
[ 7.966491] UMP: UMP device driver loaded

Here is a non working Dmesg, I would say 70% of the time I get a non-working TS

[ 12.440073] ===========================ft5x_ts_init=====================
[ 12.448854] ctp_fetch_sysconfig_para.
[ 12.458318] ctp_fetch_sysconfig_para: after: ctp_twi_addr is 0x38, dirty_addr_buf: 0x38. dirty_addr_buf[1]: 0xfffe
[ 12.462528] ctp_fetch_sysconfig_para: ctp_twi_id is 3.
[ 12.466970] ctp_fetch_sysconfig_para: screen_max_x = 800.
[ 12.471412] ctp_fetch_sysconfig_para: screen_max_y = 480.
[ 12.475799] ctp_fetch_sysconfig_para: revert_x_flag = 0.
[ 12.480155] ctp_fetch_sysconfig_para: revert_y_flag = 0.
[ 12.484872] ctp_fetch_sysconfig_para: exchange_x_y_flag = 0.
[ 12.492520] ft5x_ts_init: after fetch_sysconfig_para: normal_i2c: 0x38. normal_i2c[1]: 0xfffe
[ 12.497804] ctp_init_platform_resource: tp_reset request gpio fail!
[ 12.503288] ctp_init_platform_resource: No power port feature present.
[ 12.504799] ctp_wakeup.
[ 12.554332] incomplete xfer (0x20)
[ 12.556726] incomplete xfer (0x20)
[ 12.559093] incomplete xfer (0x20)
[ 12.561516] incomplete xfer (0x20)
[ 12.608238] UMP<2>: Inserting UMP device driver. Compiled: Dec 8 2014, time: 18:20:44
[ 12.615238] UMP<2>: Using OS memory backend, allocation limit: 134217728
[ 12.620428] UMP: UMP device driver loaded

I can confirm The fix works perfectly.
nisenbeck/linux-bananapi@ffbf0bd