Re: [PATCH] reset: gpio: Parent the reset-gpio device to the GPIO controller
From: Tyler Baker
Date: Fri Nov 06 2026 - 00:21:47 EST
On Mon, 26 Oct 2026 at 14:21, Abel Vesa wrote:
> Make the controller the parent instead, which stays registered while it
> is unbound and gets a new GPIO device when it is bound again. Keep using
> the GPIO device if it has no parent.
Fixes: 46dae84a90f9 ("reset: make the provider of reset-gpios the parent of the reset device")
> + aux_parent = parent->parent ?: parent;
On banked controllers (a gpio_chip and fwnode per bank)
gpio_shared_dev_is_reset_gpio() stops matching, since it compares the
parent's fwnode. I'll send a small fix for that on top of this.
Adding Bartosz and linux-gpio.
Tested-by: Tyler Baker <tyler.baker@xxxxxxxxxxxxxxxx> # Hamoa IoT EVK