]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tty: serial: imx: Only configure the wake register when device is set as wakeup source
authorSherry Sun <sherry.sun@nxp.com>
Thu, 2 Oct 2025 04:52:58 +0000 (12:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:34 +0000 (14:02 +0100)
commit9ff72116e6c86545b60da5c1eb5344858c3daadd
tree6ce910afee5057c359d1896577a1335e5b9c2bc8
parent78bf5afa25d6a8838e61f99b45c150db10ff91a6
tty: serial: imx: Only configure the wake register when device is set as wakeup source

[ Upstream commit d55f3d2375ceeb08330d30f1e08196993c0b6583 ]

Currently, the i.MX UART driver enables wake-related registers for all
UART devices by default. However, this is unnecessary for devices that
are not configured as wakeup sources. To address this, add a
device_may_wakeup() check before configuring the UART wake-related
registers.

Fixes: db1a9b55004c ("tty: serial: imx: Allow UART to be a source for wakeup")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251002045259.2725461-2-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/imx.c