Re: [PATCH] Revert "gpio: Access `gpio_bus_type` in gpiochip_setup_dev()"
From: Bartosz Golaszewski
Date: Mon Mar 16 2026 - 05:12:38 EST
On Fri, 13 Mar 2026 05:41:12 +0000, Tzung-Bi Shih wrote:
> This reverts commit cc11f4ef666fbca02c8a2f11d0184d57e6b75579.
>
> Commit cc11f4ef666f ("gpio: Access `gpio_bus_type` in
> gpiochip_setup_dev()") moved the bus type assignment from
> gpiochip_add_data_with_key() to gpiochip_setup_dev().
>
> This change introduced a bug where dev_printk() and friends might access
> the bus name after gpiochip_add_data_with_key() but before
> gpiochip_setup_dev() has run. In this window, the bus type is not yet
> initialized, leading to empty bus names in logs.
>
> [...]
Applied, thanks!
[1/1] Revert "gpio: Access `gpio_bus_type` in gpiochip_setup_dev()"
https://git.kernel.org/brgl/c/3518fd4c780d4fa4c0e2cedd95c0f8bc5d8b457f
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>