]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: ml-ioh: share the register lock across channels
authorJunjie Cao <junjie.cao@intel.com>
Tue, 4 Aug 2026 09:59:35 +0000 (17:59 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 10 Aug 2026 10:38:52 +0000 (12:38 +0200)
commita9253ee6771c8ab3c6de07ea75d9e2c1cef3cd97
tree196056d15f275a4462c1a722ddfe0af088132604
parent600411ea1f2443fdf5b1af9b6480f616d7aff9d0
gpio: ml-ioh: share the register lock across channels

Suspend and resume hold channel 0's lock while saving and restoring
registers for all eight channels. Code paths using the other seven locks
can therefore run concurrently with PM.

Use one controller-wide lock shared by all channels.

Fixes: b490fa0bf86e ("gpio-ml-ioh: Fix suspend/resume issue")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Link: https://lore.kernel.org/r/20260731033956.EE6F61F000E9@smtp.kernel.org
Signed-off-by: Junjie Cao <junjie.cao@intel.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260804095935.2132215-1-junjie.cao@intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-ml-ioh.c