Comment 0 for bug 2002353

Revision history for this message
Vasylenko Serhii (opendx) wrote :

I have no-name tablet with goodix touch screen which not work in any version of Ubuntu. Currently I work with 20.04 LTS and kernel 5.15.0-56-lowlatency.

It reports into dmesg:
Goodix-TS i2c-GDIX1002:00: acpi_dev_get_resources returned: 1, ts->gpio_count: 2, ts->gpio_int_idx: -1
Goodix-TS i2c-GDIX1002:00: i2c test failed attempt 1: -121
Goodix-TS i2c-GDIX1002:00: i2c test failed attempt 2: -121

After reviewing driver's source code I found that such parameters are very close to code path which is used for bay trail, but my system is not bay trail. When I comment out check for bay trail driver started to work:

776c776
< } else if (/*is_byt() &&*/ ts->gpio_count == 2 && ts->gpio_int_idx == -1) {
---
> } else if (is_byt() && ts->gpio_count == 2 && ts->gpio_int_idx == -1) {

Maybe this is not correct fix and I may fix something in my system so it will start to work with 'normal' driver? Or maybe driver need to be modified as that checking for bay trail is not needed?

Thanks.