[PATCH v2] gpio: mxc: configure dynamic GPIO base for CONFIG_GPIO_SYSFS=n
Bartosz Golaszewski
brgl at bgdev.pl
Thu May 15 08:01:29 PDT 2025
From: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
On Wed, 07 May 2025 15:07:25 +0200, Ahmad Fatoum wrote:
> i.MX GPIO numbering has been deterministic since commit 7e6086d9e54a
> ("gpio/mxc: specify gpio base for device tree probe"), a year after
> device tree support was first added back in 2011.
>
> Reverting to dynamically allocated GPIO base now would break most
> systems making use of the sysfs API. These systems will be eventually
> broken by the removal of the sysfs API, but that would result in GPIO
> scripts not working instead of essentially toggling at random according
> to probe order, which would happen if we unconditionally set base to -1.
>
> [...]
Applied, thanks!
[1/1] gpio: mxc: configure dynamic GPIO base for CONFIG_GPIO_SYSFS=n
https://git.kernel.org/brgl/linux/c/0a45c1a002705c8622738fbd2a2913acf886ea27
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
More information about the linux-arm-kernel
mailing list