]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: amd: Add an LPS0 check() callback
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 7 Apr 2025 18:36:56 +0000 (13:36 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Apr 2025 14:10:37 +0000 (16:10 +0200)
commit179db1909c5c4b5300cce626507b0f843f7d2cc2
tree6247704c3c12567d9663a6e36e5b1de296d35b39
parente1bdbbc98279164d910d2de82a745f090a8b249f
pinctrl: amd: Add an LPS0 check() callback

During suspend the pinctrl_amd driver disables the interrupts for
any GPIOs that are not marked as wake sources.

This however does not prevent them from changing the wake status
bit during suspend, it just stops the system from waking.

If the system wakes from hardware sleep for another reason (such
as plugging in the AC adapter) this wake bits might be active.

This could potentially cause problems with going back to hardware
sleep.  Add an extra debugging message when PM debugging is enabled
to help identify if this is happening.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3929
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20250407183656.1503446-2-superm1@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pinctrl/pinctrl-amd.c