]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: mxc: fix irq_high handling
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 26 May 2026 06:35:01 +0000 (08:35 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 26 May 2026 08:04:47 +0000 (10:04 +0200)
commitdac917ed5aead741004db8d0d5151dd577802df8
treec847f4c314b9c04aa33a1d0a9027626d05d268f2
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d
gpio: mxc: fix irq_high handling

If port->irq_high is -1 (fsl,imx21-gpio compatible) and gpio_idx is >= 16
enable_irq_wake() is called with -1 which is wrong.

Fixes: 5f6d1998adeb ("gpio: mxc: release the parent IRQ in runtime suspend")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260526063504.25916-1-alexander.stein@ew.tq-group.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-mxc.c