WSL2-Linux-Kernel/drivers/media/rc
Florian Fainelli 2ed8f8c09d media: rc: gpio-ir-recv: Fix support for wake-up
[ Upstream commit 9c592f8ab1 ]

The driver was intended from the start to be a wake-up source for the
system, however due to the absence of a suitable call to
device_set_wakeup_capable(), the device_may_wakeup() call used to decide
whether to enable the GPIO interrupt as a wake-up source would never
happen. Lookup the DT standard "wakeup-source" property and call
device_init_wakeup() to ensure the device is flagged as being wakeup
capable.

Reported-by: Matthew Lear <matthew.lear@broadcom.com>
Fixes: fd0f6851eb ("[media] rc: Add support for GPIO based IR Receiver driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:24 +09:00
..
img-ir
keymaps
Kconfig media: rc: introduce Meson IR TX driver 2021-08-04 14:43:49 +02:00
Makefile media: rc: introduce Meson IR TX driver 2021-08-04 14:43:49 +02:00
ati_remote.c
bpf-lirc.c bpf: Allow to specify user-provided bpf_cookie for BPF perf links 2021-08-17 00:45:07 +02:00
ene_ir.c media: rc: Fix use-after-free bugs caused by ene_tx_irqsim() 2023-03-10 09:39:45 +01:00
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c media: rc: gpio-ir-recv: Fix support for wake-up 2023-05-11 23:00:24 +09:00
gpio-ir-tx.c media: gpio-ir-tx: fix transmit with long spaces on Orange Pi PC 2022-04-08 14:23:02 +02:00
igorplugusb.c media: igorplugusb: receiver overflow should be reported 2022-01-27 11:04:41 +01:00
iguanair.c
imon.c media: imon: fix a race condition in send_packet() 2022-12-31 13:14:12 +01:00
imon_raw.c
ir-hix5hd2.c
ir-imon-decoder.c
ir-jvc-decoder.c
ir-mce_kbd-decoder.c
ir-nec-decoder.c
ir-rc5-decoder.c
ir-rc6-decoder.c
ir-rcmm-decoder.c
ir-rx51.c
ir-sanyo-decoder.c
ir-sharp-decoder.c
ir-sony-decoder.c
ir-spi.c
ir-xmp-decoder.c
ir_toy.c media: ir_toy: prevent device from hanging during transmit 2022-07-12 16:34:52 +02:00
ite-cir.c media: ite-cir: IR receiver stop working after receive overflow 2021-11-18 19:15:53 +01:00
ite-cir.h
lirc_dev.c media: rc: rename s_learning_mode() to s_wideband_receiver() 2021-07-22 08:21:53 +02:00
mceusb.c media: mceusb: set timeout to at least timeout provided 2022-10-29 10:12:54 +02:00
meson-ir-tx.c media: rc: introduce Meson IR TX driver 2021-08-04 14:43:49 +02:00
meson-ir.c
mtk-cir.c
nuvoton-cir.c
nuvoton-cir.h
pwm-ir-tx.c
rc-core-priv.h
rc-ir-raw.c
rc-loopback.c media: rc: rename s_learning_mode() to s_wideband_receiver() 2021-07-22 08:21:53 +02:00
rc-main.c
redrat3.c media: redrat3: fix control-message timeouts 2022-01-27 11:02:55 +01:00
serial_ir.c
sir_ir.c
st_rc.c
streamzap.c
sunxi-cir.c
ttusbir.c
winbond-cir.c
xbox_remote.c