OSDN Git Service

Input: stmfts - set IRQ_NOAUTOEN to the irq flag
authorAndi Shyti <andi.shyti@samsung.com>
Tue, 23 Jan 2018 01:32:46 +0000 (17:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 Jan 2018 01:35:16 +0000 (17:35 -0800)
commitcba04cdf437d745fac85220d1d692a9ae23d7004
tree02f2ccd31831cd577b3baa9ee98cc719c1964165
parent2cdc8749613de4e52f14cdb43f686d59173ed24e
Input: stmfts - set IRQ_NOAUTOEN to the irq flag

The interrupt is requested before the device is powered on and
it's value in some cases cannot be reliable. It happens on some
devices that an interrupt is generated as soon as requested
before having the chance to disable the irq.

Set the irq flag as IRQ_NOAUTOEN before requesting it.

This patch mutes the error:

  stmfts 2-0049: failed to read events: -11

received sometimes during boot time.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c