Bug 1161821

Summary: i2c_hid i2c-ELAN1010:00: failed to reset device.
Product: [openSUSE] openSUSE Tumbleweed Reporter: Terry Cater <tjcater>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: tiwai, tjcater
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Terry Cater 2020-01-25 18:59:27 UTC
With kernel 5.4(.13 currently), the touchpad no longer responds. Reverting to 5.3 fixes this.
Seems to have been patched since 5.4.8 on Arch, but no clue if this has been mainlined yet
https://bugzilla.kernel.org/show_bug.cgi?id=205745


    dmesg | grep i2c
    [    5.621911] i2c_hid i2c-ELAN1010:00: i2c-ELAN1010:00 supply vdd not found, using dummy regulator
    [    5.621925] i2c_hid i2c-ELAN1010:00: i2c-ELAN1010:00 supply vddl not found, using dummy regulator
    [   10.883881] i2c_hid i2c-ELAN1010:00: failed to reset device.
    [   17.027891] i2c_hid i2c-ELAN1010:00: failed to reset device.
    [   23.171933] i2c_hid i2c-ELAN1010:00: failed to reset device.
    [   29.315930] i2c_hid i2c-ELAN1010:00: failed to reset device.
    [   30.339920] i2c_hid i2c-ELAN1010:00: can't add hid device: -61
    [   30.340172] i2c_hid: probe of i2c-ELAN1010:00 failed with error -61
Comment 1 Takashi Iwai 2020-01-26 08:47:49 UTC
Thanks for the report.  I'm building a test kernel with the backport of the suggested patch.
It's being built in OBS home:tiwai:bsc1161821 repo.  Please give it a try later.
Comment 2 Terry Cater 2020-01-26 20:43:28 UTC
It gets stuck at boot for a period of time before finally opening a TTY

i915 0000:00:02.0: Failed to idle engines, declaring wedged!
i915 0000:00:02.0: Failed to initialize GPU, declaring it wedged!
Comment 3 Takashi Iwai 2020-01-27 08:01:38 UTC
Hrm, this must be due to the latest fix for i915.
I'm building a test kernel again with the revert of the i915 patch in OBS home:tiwai:bsc1161821-2 repo.  Please check it later.

Also, try the latest 5.5 kernel in OBS Kernel:HEAD repo.  If the problem is reproduced with this, we need to report to upstream.

Since we're going to switch TW kernel to 5.5 soon later, it'd be appreciated if you can test the latter one quickly.
Comment 4 Takashi Iwai 2020-01-27 10:03:33 UTC
BTW, Kernel:HEAD (aka 5.5 kernel) doesn't contain the pinctrl fix yet, and you'll hit the original issue with i2c-hid with it.  I asked for testing only about i915 regression with 5.5 kernel.
Comment 5 Takashi Iwai 2020-01-27 10:57:43 UTC
... and again I was wrong, the pinctrl fix is already included in 5.5 final.
And the i915 fix I backported turned out to be buggy, actually.

Now stable branch was moved to 5.5 kernel, so you'll see the shiny new 5.5 kernel in OBS Kernel:stable repo tomorrow and everything (both pinctrl and i915 problems) should work as is.  Please give it a shot later, and reopen if it still doesn't work.  Thanks.
Comment 6 Terry Cater 2020-01-27 14:39:37 UTC
Went and tested with Kernel-Head (RC7) and both the GPU and trackpad seem to work without a hitch, thank you.