]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: mxc: map Both Edge pad wakeup to Rising Edge
authorShenwei Wang <shenwei.wang@nxp.com>
Tue, 24 Mar 2026 19:21:29 +0000 (14:21 -0500)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 26 Mar 2026 08:41:44 +0000 (09:41 +0100)
commitc720fb57d56274213d027b3c5ab99080cf62a306
treeb1c9d651c3ecf7871044127542e05f12cfc3745d
parent8de4e0f44c638c66cdc5eeb4d5ab9acd61c31e4f
gpio: mxc: map Both Edge pad wakeup to Rising Edge

Suspend may fail on i.MX8QM when Falling Edge is used as a pad wakeup
trigger due to a hardware bug in the detection logic. Since the hardware
does not support Both Edge wakeup, remap requests for Both Edge to Rising
Edge by default to avoid hitting this issue.

A warning is emitted when Falling Edge is selected on i.MX8QM.

Fixes: f60c9eac54af ("gpio: mxc: enable pad wakeup on i.MX8x platforms")
cc: stable@vger.kernel.org
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Link: https://patch.msgid.link/20260324192129.2797237-1-shenwei.wang@nxp.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-mxc.c