Raul E Rangel
d08999cc59
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>
2022-11-22 13:58:44 -08:00
..
2022-09-30 10:31:18 +02:00
2022-11-22 13:58:44 -08:00
2022-08-25 15:03:15 +02:00
2022-06-13 17:25:08 +02:00
2022-08-25 11:44:27 +02:00
2022-06-15 15:51:46 +02:00
2021-05-05 14:29:13 +02:00
2019-05-30 11:26:32 -07:00
2022-07-22 15:02:20 +02:00
2022-07-22 15:05:22 +02:00
2020-03-13 17:33:11 +01:00
2022-08-25 11:31:41 +02:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-09-15 16:31:21 +02:00
2022-05-06 10:46:36 +02:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2021-07-28 11:51:07 +02:00
2022-10-05 10:21:55 +01:00
2021-12-02 15:36:18 +01:00
2021-10-07 13:37:25 +02:00
2022-06-09 10:55:46 +02:00
2019-09-03 16:52:04 +02:00
2020-10-23 13:23:44 +02:00
2022-09-28 18:31:37 -07:00
2019-10-03 15:36:40 -04:00
2022-04-21 11:38:28 +02:00
2020-11-25 17:40:23 +01:00
2022-02-17 14:14:41 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2020-03-18 13:36:21 +01:00
2022-08-25 11:37:21 +02:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2021-12-20 11:25:42 +01:00
2019-10-03 15:36:40 -04:00
2022-06-08 12:28:13 +00:00
2019-05-30 11:26:32 -07:00
2022-10-05 10:34:48 +01:00
2022-08-25 11:46:55 +02:00
2021-05-05 14:39:24 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-05-11 14:19:27 +02:00
2019-05-30 11:26:32 -07:00
2022-04-21 10:28:49 +02:00
2022-05-02 17:49:44 +02:00
2022-01-06 14:22:51 +01:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2022-07-21 13:47:12 +02:00
2021-12-02 15:36:18 +01:00
2019-10-03 15:36:40 -04:00
2022-02-16 16:26:21 +01:00
2022-09-20 11:24:30 +01:00
2020-08-17 11:38:49 +02:00
2022-01-10 09:58:34 +01:00
2019-01-14 20:11:01 +01:00
2022-07-21 11:54:40 +02:00
2022-05-06 08:29:26 +02:00
2020-11-25 14:30:33 +01:00
2020-09-02 12:55:46 -07:00
2019-05-30 11:26:32 -07:00
2022-09-20 12:13:40 +01:00
2022-09-21 13:25:26 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2020-09-03 16:18:55 +02:00
2021-04-07 18:46:20 +02:00
2019-06-05 17:30:28 +02:00
2022-05-03 16:04:22 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2021-03-08 11:08:58 +01:00
2022-08-25 10:36:28 +02:00
2019-06-05 17:36:37 +02:00
2021-12-02 15:36:18 +01:00
2022-09-20 11:36:21 +01:00
2022-08-25 11:46:15 +02:00
2022-02-16 17:12:14 +01:00
2019-05-30 11:26:32 -07:00
2022-08-25 11:29:58 +02:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2021-09-25 08:20:48 -07:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2021-12-02 15:36:18 +01:00
2019-05-30 11:26:32 -07:00
2022-09-20 14:49:15 +02:00
2019-05-30 11:26:32 -07:00
2021-12-02 15:36:18 +01:00
2021-05-05 14:21:08 +02:00
2021-05-26 12:36:46 +02:00
2021-05-05 14:36:18 +02:00
2022-02-02 15:12:22 +01:00
2019-05-30 11:26:35 -07:00
2022-09-20 11:27:29 +01:00
2019-05-30 11:26:32 -07:00
2022-10-05 10:19:06 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-08-25 11:38:55 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:50:23 +01:00
2022-09-20 12:16:25 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2021-12-02 15:35:57 +01:00
2022-08-25 10:26:31 +02:00
2022-08-25 10:26:31 +02:00
2022-08-25 10:26:31 +02:00
2022-08-25 10:26:31 +02:00
2022-08-25 10:26:31 +02:00
2022-08-25 10:26:31 +02:00
2022-08-25 10:26:31 +02:00
2020-07-20 12:24:41 +02:00
2022-05-11 14:19:27 +02:00
2022-08-25 11:37:21 +02:00
2022-08-25 11:37:21 +02:00
2022-08-25 11:37:21 +02:00
2022-09-20 11:35:00 +01:00
2019-05-30 11:26:32 -07:00
2021-01-07 10:14:58 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 14:17:22 +02:00
2020-06-19 14:17:22 +02:00
2021-09-22 11:53:07 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2022-08-25 11:30:50 +02:00
2022-10-05 10:34:48 +01:00
2022-10-05 10:34:48 +01:00
2022-02-25 09:36:06 +01:00
2022-10-05 10:36:30 +01:00
2022-10-05 10:36:30 +01:00
2022-08-25 11:32:31 +02:00
2022-08-25 11:32:31 +02:00