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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:10 +0000 (11:02 +0200)
commit6a5505da41faa98555526ba50ca9865a2bd0ef99
treed4479fb1537b8dedc17a442a7017a3b5af023a43
parent8afed2798e50f3f9b84a6b0c9eb9810119a0fc3f
Input: stmfts - set IRQ_NOAUTOEN to the irq flag

[ Upstream commit cba04cdf437d745fac85220d1d692a9ae23d7004 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/stmfts.c