Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-20 Thread Mika Westerberg
On Mon, Nov 20, 2017 at 01:18:51PM +0800, Chris Chiu wrote: > On Fri, Nov 17, 2017 at 9:52 PM, Mika Westerberg > wrote: > > On Fri, Nov 17, 2017 at 03:35:18PM +0200, Mika Westerberg wrote: > >> > pin 18 (GPIO_18) GPIO 0x40900100 0x00024075 > > > > Hmm, > > > > If I decode 0x40900100 correctly PADC

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-19 Thread Chris Chiu
On Fri, Nov 17, 2017 at 9:52 PM, Mika Westerberg wrote: > On Fri, Nov 17, 2017 at 03:35:18PM +0200, Mika Westerberg wrote: >> > pin 18 (GPIO_18) GPIO 0x40900100 0x00024075 > > Hmm, > > If I decode 0x40900100 correctly PADCFG0_GPIROUTIOXAPIC (BIT 20) flag is > set for the pin. This means the interr

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Mika Westerberg
On Fri, Nov 17, 2017 at 03:35:18PM +0200, Mika Westerberg wrote: > > pin 18 (GPIO_18) GPIO 0x40900100 0x00024075 Hmm, If I decode 0x40900100 correctly PADCFG0_GPIROUTIOXAPIC (BIT 20) flag is set for the pin. This means the interrupt is routed to IO-APIC instead. Now, we do clear that flag along

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Mika Westerberg
On Fri, Nov 17, 2017 at 09:21:48PM +0800, Chris Chiu wrote: > On Fri, Nov 17, 2017 at 7:00 PM, Mika Westerberg > wrote: > > On Fri, Nov 17, 2017 at 06:01:27PM +0800, Chris Chiu wrote: > >> Hi Mika, > >> Here's the full dmesg log you need. The touchpad stop reporting at > >> the last of the log

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Chris Chiu
On Fri, Nov 17, 2017 at 7:00 PM, Mika Westerberg wrote: > On Fri, Nov 17, 2017 at 06:01:27PM +0800, Chris Chiu wrote: >> Hi Mika, >> Here's the full dmesg log you need. The touchpad stop reporting at >> the last of the log. >> https://gist.github.com/mschiu77/a0b8d24a586a228c55eca30c87c71d41 >

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Mika Westerberg
On Fri, Nov 17, 2017 at 06:01:27PM +0800, Chris Chiu wrote: > Hi Mika, > Here's the full dmesg log you need. The touchpad stop reporting at > the last of the log. > https://gist.github.com/mschiu77/a0b8d24a586a228c55eca30c87c71d41 Thanks! I did not spot anything suspicious in the i2c-hid init

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Chris Chiu
On Fri, Nov 17, 2017 at 5:13 PM, Chris Chiu wrote: > On Fri, Nov 17, 2017 at 5:11 PM, Mika Westerberg > wrote: >> On Fri, Nov 17, 2017 at 04:27:39PM +0800, Chris Chiu wrote: >>> On Thu, Nov 16, 2017 at 9:07 PM, Mika Westerberg >>> wrote: >>> > On Thu, Nov 16, 2017 at 12:01:24PM +, Daniel Dra

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Chris Chiu
On Fri, Nov 17, 2017 at 5:11 PM, Mika Westerberg wrote: > On Fri, Nov 17, 2017 at 04:27:39PM +0800, Chris Chiu wrote: >> On Thu, Nov 16, 2017 at 9:07 PM, Mika Westerberg >> wrote: >> > On Thu, Nov 16, 2017 at 12:01:24PM +, Daniel Drake wrote: >> >> On Thu, Nov 16, 2017 at 11:52 AM, Mika Weste

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Mika Westerberg
On Fri, Nov 17, 2017 at 04:27:39PM +0800, Chris Chiu wrote: > On Thu, Nov 16, 2017 at 9:07 PM, Mika Westerberg > wrote: > > On Thu, Nov 16, 2017 at 12:01:24PM +, Daniel Drake wrote: > >> On Thu, Nov 16, 2017 at 11:52 AM, Mika Westerberg > >> wrote: > >> > Please first check the signal with so

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-17 Thread Chris Chiu
The dmesg log is here https://gist.github.com/mschiu77/5dfe91ef319de16fb343c5d907b2cbc5 And the acpidump is here https://gist.github.com/mschiu77/d9b72d89a6a21efb616f153f164c0d18 On Fri, Nov 17, 2017 at 4:27 PM, Chris Chiu wrote: > On Thu, Nov 16, 2017 at 9:07 PM, Mika Westerberg > wrote: >> On

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-16 Thread Mika Westerberg
On Thu, Nov 16, 2017 at 12:01:24PM +, Daniel Drake wrote: > On Thu, Nov 16, 2017 at 11:52 AM, Mika Westerberg > wrote: > > Please first check the signal with some analyzator if it works as > > expected and let's then figure out what needs to be fixed and where ;-) > > It works fine under Wind

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-16 Thread Daniel Drake
On Thu, Nov 16, 2017 at 11:52 AM, Mika Westerberg wrote: > Please first check the signal with some analyzator if it works as > expected and let's then figure out what needs to be fixed and where ;-) It works fine under Windows, so I think it's already clear that there is a Linux bug to be solved

Re: intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-16 Thread Mika Westerberg
On Thu, Nov 16, 2017 at 11:38:33AM +, Daniel Drake wrote: > Hi, > > We have 2 new laptop samples which use ACPI GpioInt for the I2C-HID > touchpad interrupt (via intel-gpio) and both models face different > issues related to this interrupt, which is level-triggered active low > (as defined by

intel-gpio interrupts stop firing with Focaltech I2C-HID touchpad

2017-11-16 Thread Daniel Drake
Hi, We have 2 new laptop samples which use ACPI GpioInt for the I2C-HID touchpad interrupt (via intel-gpio) and both models face different issues related to this interrupt, which is level-triggered active low (as defined by i2c-hid spec), and ultimately handled by a threaded interrupt handler in t