]> git.baikalelectronics.ru Git - kernel.git/commit
Input: axp20x-pek - respect userspace wakeup configuration
authorSamuel Holland <samuel@sholland.org>
Wed, 22 Jan 2020 06:03:14 +0000 (22:03 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Jan 2020 06:05:27 +0000 (22:05 -0800)
commit1e2736dc91155af983df0354d9ccb6ee59d04e2b
tree9f60e7f5bf454f06f443681735e15677eafef391
parenteec61b4440da3e418106ec39e9345cb968b94eb4
Input: axp20x-pek - respect userspace wakeup configuration

Unlike most other power button drivers, this driver unconditionally
enables its wakeup IRQ. It should be using device_may_wakeup() to
respect the userspace configuration of wakeup sources.

Because the AXP20x MFD device uses regmap-irq, the AXP20x PEK IRQs are
nested off of regmap-irq's threaded interrupt handler. The device core
ignores such interrupts, so to actually disable wakeup, we must
explicitly disable all non-wakeup interrupts during suspend.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200115051253.32603-2-samuel@sholland.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/axp20x-pek.c