Commit b64da5b1 authored by Kendall Willis's avatar Kendall Willis Committed by Greg Kroah-Hartman
Browse files

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: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarKendall Willis <k-willis@ti.com>
Link: https://patch.msgid.link/20260116-uart-wakeup-v2-1-0078ae9996e4@ti.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e19f73f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
}