]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpiolib: fix hogs with multiple lines
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 30 Mar 2026 08:36:03 +0000 (10:36 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 30 Mar 2026 13:14:58 +0000 (15:14 +0200)
commit802c51a83e9a0617d1e97ecd383471f4c6fd5437
tree2e7b64b07582065cb5e5c13efdb407d987bc0aa6
parentaf475c16bc02a08ed6af6ca0c920f98a45611fe6
gpiolib: fix hogs with multiple lines

After moving GPIO hog handling into GPIOLIB core, we accidentally stopped
supporting devicetree hog definitions with multiple lines like so:

hog {
gpio-hog;
gpios = <3 0>, <4 GPIO_ACTIVE_LOW>;
output-high;
line-name = "foo";
};

Restore this functionality to fix reported regressions.

Fixes: d1d564ec4992 ("gpio: move hogs into GPIO core")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Closes: https://lore.kernel.org/all/CAMuHMdX6RuZXAozrF5m625ZepJTVVr4pcyKczSk12MedWvoejw@mail.gmail.com/
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260330-gpio-hogs-multiple-v3-1-175c3839ad9f@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib.c