[PATCH v4 08/14] usb: hub: Use usb_hub_set_port_power() to control port power everywhere
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Thu Jul 9 03:39:44 PDT 2026
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 at linux.intel.com>
--
With Best Regards,
Andy Shevchenko
More information about the Linux-mediatek
mailing list