summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorSahaj Chaudhari <sahaj123.sc@gmail.com>2026-10-18 21:40:42 +0530
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-10-20 15:26:05 +0200
commita38bf551726a21c9bcc001b02164f30378b64b64 (patch)
tree92d0c162788d285cbe8e16383b6243fb1658c4eb /tools/perf/scripts/python/bin/stackcollapse-record
parent800d7627f552bbf602a1736b638aee0ada3fbf87 (diff)
downloadlwn-a38bf551726a21c9bcc001b02164f30378b64b64.tar.gz
lwn-a38bf551726a21c9bcc001b02164f30378b64b64.zip
gpio: pca953x: Preserve wakeup accounting on parent IRQ failure
pca953x_irq_set_wake() updates wakeup_path before asking the parent IRQ controller to change its wake state. If irq_set_irq_wake() fails, the IRQ core rolls back its wake state but the driver's counter remains changed. A failed enable can therefore leave the expander marked as part of the wakeup path when no child IRQ has successfully enabled wakeup. A failed disable can make the driver stop retaining power even though wakeup is still enabled. The suspend and resume paths use this counter to decide whether to disable or enable the regulator. Update wakeup_path only after the parent operation succeeds, leaving it unchanged on error. Fixes: f70fbc15bae2 ("gpio: pca953x: Configure wake-up path when wake-up is enabled") Cc: stable@vger.kernel.org Signed-off-by: Sahaj Chaudhari <sahaj123.sc@gmail.com> Fixes: f70fbc15bae2c89f ("gpio: pca953x: Configure wake-up path when wake-up is enabled") Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20261018161042.3298045-1-sahaj123.sc@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions