diff options
author | Raul E Rangel <[email protected]> | 2022-11-22 13:39:06 -0800 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2022-11-22 13:58:44 -0800 |
commit | d08999cc593ea18a3dc5993faea5e413ae29ff96 (patch) | |
tree | d12ad96bd741d939d09a9e4a638d5d8b82973691 /net/unix/af_unix.c | |
parent | b76f64caa42e9bb78e177ae94e1062d876a401b1 (diff) |
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 <[email protected]>
Acked-by: Benjamin Tissoires <[email protected]>
Link: https://lore.kernel.org/r/20220929093200.v6.1.Id4b4bdfe06e2caf2d5a3c9dd4a9b1080c38b539c@changeid
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions