diff options
| author | Raul E Rangel <rrangel@chromium.org> | 2022-11-22 13:39:06 -0800 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-11-22 13:58:44 -0800 |
| commit | d08999cc593ea18a3dc5993faea5e413ae29ff96 (patch) | |
| tree | d12ad96bd741d939d09a9e4a638d5d8b82973691 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | Input: max8997 - convert to modern way to get a reference to a PWM (diff) | |
| download | linux-d08999cc593ea18a3dc5993faea5e413ae29ff96.tar.gz linux-d08999cc593ea18a3dc5993faea5e413ae29ff96.zip | |
HID: i2c-hid: Use PM subsystem to manage wake irq
The I2C hid driver is currently manually managing the wake
IRQ. This change removes the explicit enable_irq_wake/disable_irq_wake
and instead relies on the PM subsystem. This is done by calling
dev_pm_set_wake_irq.
i2c_device_probe already calls dev_pm_set_wake_irq when using device
tree, and i2c_device_remove also already calls dev_pm_clear_wake_irq.
There could be some device tree systems that have incorrectly declared
`wake` capabilities, so this change will set the wake irq if one is
missing. This matches the previous behavior.
I tested this on an ACPI system that has a HID touchscreen and verified
the IRQ was armed for wake on suspend.
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220929093200.v6.1.Id4b4bdfe06e2caf2d5a3c9dd4a9b1080c38b539c@changeid
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
