From: Jeff LaBundy Date: Mon, 18 Aug 2025 00:20:22 +0000 (-0500) Subject: Input: iqs7222 - avoid enabling unused interrupts X-Git-Tag: v6.17-rc6~7^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9ddc41cdd522f2db5d492eda3df8994d928be34;p=thirdparty%2Fkernel%2Fstable.git Input: iqs7222 - avoid enabling unused interrupts 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 Link: https://lore.kernel.org/r/aKJxxgEWpNaNcUaW@nixie71 Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/iqs7222.c b/drivers/input/misc/iqs7222.c index 6fac31c0d99f2..ff23219a582ab 100644 --- a/drivers/input/misc/iqs7222.c +++ b/drivers/input/misc/iqs7222.c @@ -2427,6 +2427,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;