[PATCH v6 1/7] usb: onboard-hub: Add reset-gpio support
Marek Vasut
marex at denx.de
Tue Oct 8 15:49:01 CEST 2024
On 10/8/24 6:58 AM, Venkatesh Yadav Abbarapu wrote:
[...]
> @@ -38,6 +75,12 @@ static int usb_onboard_hub_remove(struct udevice *dev)
> struct onboard_hub *hub = dev_get_priv(dev);
> int ret;
>
> + if (hub->reset_gpio) {
> + struct gpio_desc *hub_reset_gpio = hub->reset_gpio;
> +
> + dm_gpio_free(hub_reset_gpio->dev, hub_reset_gpio);
dm_gpio_free(hub_reset_gpio->dev, hub->reset_gpio); , no need for the
extra local variable.
[...]
More information about the U-Boot
mailing list