nE0sIghT / android_kernel_xiaomi_msm8953

Xiaomi Redmi Note 4 (mido) LineageOS updated kernel
Other
23 stars 7 forks source link

goodix fingerprint: Failed to reset device #10

Closed nE0sIghT closed 4 years ago

nE0sIghT commented 4 years ago

logcat:

04-21 16:58:57.600   502   502 D FingerGoodix: Open device[/dev/goodix_fp] success. Handle = 9
04-21 16:58:57.600   502   502 D FingerGoodix: gf_ready_spiclk. g_spi_clk = 0
04-21 16:58:57.600   502   502 D FingerGoodix: device_check_reset
04-21 16:58:57.600   502   502 D FingerGoodix: fnCa_GetStatus(), in
04-21 16:58:57.600   502   502 D FingerGoodix: gx_ta_send_command, cmd = 18
04-21 16:58:57.607   502   502 D FingerGoodix: fnCa_GetStatus(), out
04-21 16:58:57.607   502   502 D FingerGoodix: gf_disable_irq
04-21 16:58:57.614   502   502 D FingerGoodix: fnCa_GetStatus(), in
04-21 16:58:57.614   502   502 D FingerGoodix: gx_ta_send_command, cmd = 18
04-21 16:58:57.617   502   502 D FingerGoodix: fnCa_GetStatus(), out
04-21 16:58:57.617   502   502 D FingerGoodix: gf_enable_irq
04-21 16:58:57.617   502   502 D FingerGoodix: Failed to check:0x0
04-21 16:58:57.617   502   502 E FingerGoodix: Failed to reset device!!!!!!!!!!!!!!!!
04-21 16:58:57.618   502   502 E FingerGoodix: fingerprint device enable failed!
04-21 16:58:57.618   502   502 D FingerGoodix: gx_ta_stop
offset1313 commented 4 years ago

Are you able to enroll fingerprint?

Nicklas373 commented 4 years ago

Are you able to enroll fingerprint?

Don't know for enroll, but open with rolled fingerprint is fine so far

offset1313 commented 4 years ago

New fp Enroll is working fine for me

Nicklas373 commented 4 years ago

New fp Enroll is working fine for me

goodix? or fpc?

offset1313 commented 4 years ago

New fp Enroll is working fine for me

goodix? or fpc?

Goodix

GiaSen commented 4 years ago

I would try to flash persist image from my group https://t.me/rn4xP/243504 Or flash fp reset fix https://t.me/rn4xP/215148

nE0sIghT commented 4 years ago
[    2.560194] gf:gf_init, entry
[    2.560743] gf:gf_probe, entry
[    2.560943] gf:gf_init, exit
[    8.371268] [info] goodix_fb_state_chg_callback go to the goodix_fb_state_chg_callback value = 16
[    8.559159] QSEECOM: qseecom_load_app: App (goodixfp) does'nt exist, loading apps for first time
[    8.722472] QSEECOM: qseecom_load_app: App with id 5 (goodixfp) now loaded
[    8.723741] gf:gf_open, entry
[    8.723749] gf:Found
[    8.723753] gf:Succeed to open device. irq = 0
[    8.723756] gf:gf_open, exit
[    8.723782] gf:gf_ioctl, entry
[    8.723786] gf:driver_init_partial, entry
[    8.723818] goodix_fp soc:goodix_fp: goodix,gpio_reset 140
[    8.723827] goodix_fp soc:goodix_fp: goodix,gpio_irq 48
[    8.724026] found pin control goodixfp_reset_reset
[    8.724028] found pin control goodixfp_reset_active
[    8.724029] found pin control goodixfp_irq_active
[    8.724040] goodix_fp soc:goodix_fp: Selected 'goodixfp_reset_active'
[    8.724050] goodix_fp soc:goodix_fp: Selected 'goodixfp_irq_active'
[    8.724404] goodix_fp soc:goodix_fp: Selected 'goodixfp_reset_reset'
[    8.727429] goodix_fp soc:goodix_fp: Selected 'goodixfp_reset_active'
[    8.727443] goodix_fp soc:goodix_fp: IRQ after reset 0
[    8.727711] gf:enter irq gf_irq
[    9.087487] gf:driver_init_partial, exit
[    9.087498] gf:gf_ioctl, exit
[    9.087595] gf:gf_ioctl, entry
[    9.087600] gf:gf_ioctl, exit
[    9.087607] gf:gf_ioctl, entry
[    9.087611] gf:gf_ioctl, exit
[    9.095246] gf:gf_ioctl, entry
[    9.095261] gf:gf_ioctl, exit
[    9.095265] gf:gf_ioctl, entry
[    9.095285] goodix_fp soc:goodix_fp: Selected 'goodixfp_reset_reset'
[    9.098305] goodix_fp soc:goodix_fp: Selected 'goodixfp_reset_active'
[    9.098316] goodix_fp soc:goodix_fp: IRQ after reset 0
[    9.098573] gf:enter irq gf_irq
[    9.101318] gf:gf_ioctl, exit
[    9.105224] gf:gf_ioctl, entry
[    9.105237] gf:gf_ioctl, exit
[    9.113154] gf:gf_ioctl, entry
[    9.113165] gf:[info]  entergf_cleanup
[    9.113176] gf:remove irq_gpio success
[    9.113181] gf:remove reset_gpio success
[    9.113205] gf:gx  fingerprint_pinctrl  release success
[    9.113208] gf:gf_ioctl, exit
[    9.113228] gf:gf_release, entry
[    9.113231] gf:disble_irq. irq = 412
[    9.113377] gf:gf_release, exit
nE0sIghT commented 4 years ago
04-27 16:33:54.850   510   510 D FingerGoodix: gx_ta_start
04-27 16:33:54.850   510   510 E QSEECOMAPI: Error::Cannot open the file /system/etc/firmware/goodixfp.mdt errno = 2
04-27 16:33:54.850   510   510 D FingerGoodix: Loading goodixfp failed: ret=-1, errno=2.
04-27 16:33:55.074   510   510 D FingerGoodix: Loading goodixfp Succeed.
04-27 16:33:55.074   510   510 D FingerGoodix: Ta start success.
04-27 16:33:55.074   510   510 D FingerGoodix: before device_enable()
04-27 16:33:55.074   510   510 E FingerGoodix: start open /dev/goodix_fp.
04-27 16:33:55.074   510   510 D FingerGoodix: gf_enable_gpio
04-27 16:33:55.437   510   510 D FingerGoodix: Open device[/dev/goodix_fp] success. Handle = 9
04-27 16:33:55.437   510   510 D FingerGoodix: gf_ready_spiclk. g_spi_clk = 0
04-27 16:33:55.437   510   510 D FingerGoodix: device_check_reset
04-27 16:33:55.438   510   510 D FingerGoodix: fnCa_GetStatus(), in
04-27 16:33:55.438   510   510 D FingerGoodix: gx_ta_send_command, cmd = 18
04-27 16:33:55.444   510   510 D FingerGoodix: fnCa_GetStatus(), out
04-27 16:33:55.444   510   510 D FingerGoodix: gf_disable_irq
04-27 16:33:55.450   510   510 D FingerGoodix: fnCa_GetStatus(), in
04-27 16:33:55.450   510   510 D FingerGoodix: gx_ta_send_command, cmd = 18
04-27 16:33:55.454   510   510 D FingerGoodix: fnCa_GetStatus(), out
04-27 16:33:55.454   510   510 D FingerGoodix: gf_enable_irq
04-27 16:33:55.454   510   510 D FingerGoodix: Failed to check:0x0
04-27 16:33:55.454   510   510 E FingerGoodix: Failed to reset device!!!!!!!!!!!!!!!!
04-27 16:33:55.454   510   510 E FingerGoodix: fingerprint device enable failed!
04-27 16:33:55.454   510   510 D FingerGoodix: gx_ta_stop
04-27 16:33:55.461   510   510 D FingerGoodix: Unload goodixfp succeed.
04-27 16:33:55.462   510   510 D FingerGoodix: Ta stop success.
04-27 16:33:55.462   510   510 E FingerGoodix: fingerprint device enable failed! disable device
04-27 16:33:55.462   510   510 D FingerGoodix: NavThread doesn't run.
04-27 16:33:55.462   510   510 D FingerGoodix: Close netlink thread.
04-27 16:33:55.462   510   510 D FingerGoodix: Close device. Handle = 9
04-27 16:33:55.462   510   510 D FingerGoodix: gf_release_gpio,gf_release_gpio
04-27 16:33:55.462   510   510 D FingerGoodix: gf_release_gpio,gf_release_gpio by ioctl
04-27 16:33:55.462   510   510 D FingerGoodix: gf_close,Close device,gf_release_gpio
04-27 16:33:55.462   510   510 D FingerGoodix: Close device. Handle = 9
04-27 16:33:55.462   510   510 D FingerGoodix: , ret = 0
04-27 16:33:55.462   510   510 E FingerGoodix: fingerprint device disbale device finish!
04-27 16:33:55.462   510   510 E FingerGoodix: Can't open fingerprint methods, error: -1
04-27 16:33:55.462   510   510 D FingerGoodix: getprop[sys.fp.vendor] return: 0, prop: 
04-27 16:33:55.462   510   510 D FingerGoodix: getprop[ro.bootmode] return: 7, prop: unknown
04-27 16:33:55.462   510   510 D FingerGoodix: getprop[sys.fp.vendor] return: 0, prop: 
04-27 16:33:55.463   510   510 D FingerGoodix: setprop[sys.fp.vendor] to 'switchf', return: 0
04-27 16:33:55.463   510   510 D FingerGoodix: getprop[sys.fp.goodix] return: 0, prop: 
04-27 20:34:22.334  2028  2028 W init    : type=1400 audit(0.0:52): avc: denied { execute } for name="init.goodix.sh" dev="mmcblk0p48" ino=1308 scontext=u:r:init:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0
offset1313 commented 4 years ago

For this: Error::Cannot open the file /system/etc/firmware/goodixfp.mdt errno = 2 (no such file or dir)

goodixfp.mdt is at path /vendor/firmware_mnt/image/

and this path has been linked to: /firmware/image

nE0sIghT commented 4 years ago

Logs are taken with FPC sensor. Closing.