lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 25 Mar 2019 11:30:24 -0700
From:   Dmitry Torokhov <>
Cc:     Hans de Goede <>,
        Vladislav Dalechyn <>,
        Benjamin Tissoires <>,
        Jiri Kosina <>,
        Kai Heng Feng <>,
        Swboyd <>, Bigeasy <>,
        "open list:HID CORE LAYER" <>,
        lkml <>
Subject: Re: [PATCH] ELAN touchpad i2c_hid bugs fix

On Mon, Mar 25, 2019 at 11:23 AM <> wrote:
> Hi.
> Mar 25, 2019, 6:56 PM by
> If you want to keep on using edge you need to make sure that i2c-hid
> never loses edge, as replaying of previously disabled interrupts in
> not at all reliable. So you need to "kick" the device after
> enable_irq() by initiating read from it and be ready to not get any
> data or get valid data and process accordingly.
> I'm sorry, but how edge can be loosed? There is device ID and quirk's which are associated with that ID, and quirk will always trigger edge irq.

If edge arrives while interrupt is disabled and replay of the
interrupt does not work when it is reenabled (and I do not think it
ever works for GPIO, you can hunt for Thomas Gleixner emails to that
effect on LKML), then ISR in the driver will never be called, so
driver will never read from the device to reset the interrupt
condition and interrupt will never be reasserted again -> edge lost.



Powered by blists - more mailing lists