Re: [PATCH v4 08/14] usb: hub: Use usb_hub_set_port_power() to control port power everywhere
From: Andy Shevchenko
Date: Thu Jul 09 2026 - 06:41:32 EST
On Thu, Jul 09, 2026 at 05:57:13PM +0800, Chen-Yu Tsai wrote:
> There are still some instances in the USB hub driver where port power is
> directly controlled by toggling the USB_PORT_FEAT_POWER feature flag.
>
> Switch these instances over to usb_hub_set_port_power() so that only one
> unified function to do this exists. This makes adding external power
> control with the power sequencing API easier and consistently applied.
Makes sense even on its own.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
--
With Best Regards,
Andy Shevchenko