]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: adp5588-keys - do not try to disable interrupt 0
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 14:07:08 +0000 (07:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 25 Oct 2024 22:52:45 +0000 (15:52 -0700)
commit2860586c588ad2dd8747e85ab43c4cf58bb066f4
tree4630eea3cdcd805541b2c09b1f86350fa3544d9e
parentbffdf9d7e51a7be8eeaac2ccf9e54a5fde01ff65
Input: adp5588-keys - do not try to disable interrupt 0

Commit dc748812fca0 ("Input: adp5588-keys - add support for pure gpio")
made having interrupt line optional for the device, however it neglected
to update suspend and resume handlers that try to disable interrupts
for the duration of suspend.

Fix this by checking if interrupt number assigned to the i2c device is
not 0 before trying to disable or reenable it.

Fixes: dc748812fca0 ("Input: adp5588-keys - add support for pure gpio")
Link: https://lore.kernel.org/r/Zv_2jEMYSWDw2gKs@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5588-keys.c