]> git.ipfire.org Git - thirdparty/linux.git/commit
extcon: ptn5150: handle pending IRQ events during system resume
authorXu Yang <xu.yang_2@nxp.com>
Sat, 15 Nov 2025 02:59:05 +0000 (10:59 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 20 Mar 2026 02:20:42 +0000 (11:20 +0900)
commit4652fefcda3c604c83d1ae28ede94544e2142f06
tree99811ecd823065827c42610d830f9028c610e41d
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
extcon: ptn5150: handle pending IRQ events during system resume

When the system is suspended and ptn5150 wakeup interrupt is disabled,
any changes on ptn5150 will only be record in interrupt status
registers and won't fire an IRQ since its trigger type is falling
edge. So the HW interrupt line will keep at low state and any further
changes won't trigger IRQ anymore. To fix it, this will schedule a
work to check whether any IRQ are pending and handle it accordingly.

Fixes: 4ed754de2d66 ("extcon: Add support for ptn5150 extcon driver")
Cc: stable@vger.kernel.org
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/lkml/20251115025905.1395347-1-xu.yang_2@nxp.com/
drivers/extcon/extcon-ptn5150.c