summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKendall Willis <k-willis@ti.com>2026-01-16 13:55:49 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-23 17:24:47 +0100
commitb64da5b16ab3c5dcc6e95180891d1c10eda83ffd (patch)
treec828a10f375ebdec6ac84317f0ffbfcdde600f0d
parent0e19f73ffde187458fadfff60eb4771bff704296 (diff)
serial: 8250: omap: set out-of-band wakeup if wakeup pinctrl exists
In TI K3 SoCs, I/O daisy chaining is used to allow wakeup from UART when the UART controller is off. Set UART device as wakeup capable using out-of-band wakeup if the 'wakeup' pinctrl state exists and the device may wakeup. Reviewed-by: Dhruva Gole <d-gole@ti.com> Signed-off-by: Kendall Willis <k-willis@ti.com> Link: https://patch.msgid.link/20260116-uart-wakeup-v2-1-0078ae9996e4@ti.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/8250/8250_omap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c
index 272bc07c9a6b..8c88e0f47cd9 100644
--- a/drivers/tty/serial/8250/8250_omap.c
+++ b/drivers/tty/serial/8250/8250_omap.c
@@ -1382,6 +1382,8 @@ static int omap8250_select_wakeup_pinctrl(struct device *dev,
if (!device_may_wakeup(dev))
return 0;
+ device_set_out_band_wakeup(dev);
+
return pinctrl_select_state(priv->pinctrl, priv->pinctrl_wakeup);
}