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

Mehmet Fide mehmet.fide at gmail.com
Thu Sep 3 00:59:36 PDT 2026


From: Mehmet Fide <mehmet.fide at screeningeagle.com>

> [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



More information about the linux-arm-kernel mailing list