Re: [PATCH v2] gpiolib: reset lookup flags for each hogged line
From: Bartosz Golaszewski
Date: Thu Nov 05 2026 - 03:57:12 EST
On Wed, 04 Nov 2026 20:59:38 +0900, Jinseob Kim wrote:
> gpiochip_add_hog() initializes lflags once before iterating over the GPIO
> specifiers. In the non-OF path, an active-low line sets GPIO_ACTIVE_LOW,
> but a later active-high line does not clear it. A single firmware hog
> with mixed polarities therefore configures later active-high lines as
> active-low, including inverting their initial output value.
>
> Initialize the lookup flags for each line before translating its flags.
> The OF helper already overwrites the flags for each specifier; the
> non-OF path must also start with a fresh value.
>
> [...]
Applied, thanks!
[1/1] gpiolib: reset lookup flags for each hogged line
https://git.kernel.org/brgl/c/c20464a78162cf8b3a1c9dc7e0d764e535bfe582
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>