Bug 196761

Summary: ELAN I2C touchpad stops working shortly after boot without pinctrl-amd.c patch
Product: Drivers Reporter: adebeus
Component: Input DevicesAssignee: drivers_input-devices
Status: NEW ---    
Severity: normal CC: dmitry.torokhov, mwaboff
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.12.8 Subsystem:
Regression: No Bisected commit-id:
Attachments: pinctrl-amd fix from ubuntu

Description adebeus 2017-08-25 02:03:57 UTC
Created attachment 258091 [details]
pinctrl-amd fix from ubuntu

On an Acer Aspire E5-553G laptop, the touchpad ceases to function shortly after boot. I have observed this behavior with every kernel I've tried with the exception of the Ubuntu 4.4 series kernels. I've traced the fix to a specific patch Ubuntu has applied to the pinctrl-amd.c file, which is attached, by compiling my own (vanilla) kernel both with and without the attached patch applied.

I'm currently running Gentoo with a 4.4.83 LTS kernel so I can use this patch, but would like to be able to use the latest and greatest. I haven't tried porting the Ubuntu fix to newer kernels but I assume a similar fix should be possible.
Comment 1 Dmitry Torokhov 2017-08-25 22:43:57 UTC
Does it help if you remove line

irqflags = dev->of_node ? 0 : IRQF_TRIGGER_FALLING;

from drivers/input/moune/elan_i2c_core.c ?