Re: [PATCH v2 2/2] media: rc: meson-ir: allow the receiver to wake the system
From: Martin Blumenstingl
Date: Tue Nov 10 2026 - 02:18:21 EST
On Fri, Nov 6, 2026 at 11:20 AM
<christian.koever-draxl@xxxxxxxxxxxxxxxxxx> wrote:
>
> From: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>
>
> The suspend callback switches the decoder off, so nothing is left to
> notice the remote and the receiver can never wake the system from
> s2idle, where only Linux interrupts can wake the CPUs.
>
> When the device is a wakeup source, keep the decoder running and arm
> its interrupt as a wake interrupt instead. Boards without the
> wakeup-source property keep the existing behaviour.
>
> This does not affect suspend to RAM on boards whose firmware watches
> the IR receiver itself while the SoC is down, as on S4 where BL31 wakes
> the board on the remote's power key.
>
> Tested on an S905W2 board in s2idle: the power key on the remote wakes
> it; with wakeup disabled for the receiver it does not.
>
> Signed-off-by: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>