Re: [PATCH v4 3/3] gpio: mmio: track the direction of chips without direction registers

From: Mehmet Fide

Date: Thu Sep 03 2026 - 04:29:56 EST


From: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>

> [Severity: Medium]
> Are we correctly parsing the packed pin configuration value here?

Yes: gpiochip_generic_get_config() hands back what
pinctrl_gpio_get_config() returns, the bare argument, so config is 0 or
1 here. The problem is the get_config() documentation in patch 2, which
says "packed" where the implementation says "argument"; a driver written
to that text would indeed break this check. Patch 2 gets the wording
fixed in v5, this patch stays as it is.

Mehmet