Re: [PATCH] gpiolib: reset lookup flags for each hogged line

From: Bartosz Golaszewski

Date: Wed Nov 04 2026 - 04:54:22 EST


On Wed, Nov 04, 2026 at 07:43:39AM +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.
>

Please split the fix and the test into separate commits. The fix can go
directly upstream while the test will be queued for v7.5.

Thanks,
Bartosz