summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff LaBundy <jeff@labundy.com>2025-08-17 19:20:22 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-09-19 16:35:48 +0200
commitf80c46c5fb7290544a9cdd494c26a9c070da0989 (patch)
treeb73ccacc5568696e824883703ec69b82ab2ffbff
parent51d7f652b381a4a0337331fae78ff0585cdfafe8 (diff)
Input: iqs7222 - avoid enabling unused interrupts
commit c9ddc41cdd522f2db5d492eda3df8994d928be34 upstream. If a proximity event node is defined so as to specify the wake-up properties of the touch surface, the proximity event interrupt is enabled unconditionally. This may result in unwanted interrupts. Solve this problem by enabling the interrupt only if the event is mapped to a key or switch code. Signed-off-by: Jeff LaBundy <jeff@labundy.com> Link: https://lore.kernel.org/r/aKJxxgEWpNaNcUaW@nixie71 Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/input/misc/iqs7222.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/misc/iqs7222.c b/drivers/input/misc/iqs7222.c
index 846aac9a5c9d..7a2e34949854 100644
--- a/drivers/input/misc/iqs7222.c
+++ b/drivers/input/misc/iqs7222.c
@@ -2430,6 +2430,9 @@ static int iqs7222_parse_chan(struct iqs7222_private *iqs7222,
if (error)
return error;
+ if (!iqs7222->kp_type[chan_index][i])
+ continue;
+
if (!dev_desc->event_offset)
continue;