Re: [PATCH v2 07/16] usb: hub: Power on connected M.2 E-key connectors
From: Andy Shevchenko
Date: Mon Jun 29 2026 - 07:20:44 EST
On Mon, Jun 29, 2026 at 02:46:42PM +0800, Chen-Yu Tsai wrote:
> On Fri, Jun 12, 2026 at 4:55 PM Chen-Yu Tsai <wenst@xxxxxxxxxxxx> wrote:
> > On Thu, Jun 11, 2026 at 6:11 PM Bartosz Golaszewski <brgl@xxxxxxxxxx> wrote:
> > > On Wed, 10 Jun 2026 10:40:41 +0200, Chen-Yu Tsai <wenst@xxxxxxxxxxxx> said:
...
> > Yeah, instead we need
> >
> > config USB
> > depends on POWER_SEQUENCING && !POWER_SEQUENCING
>
> FTR:
>
> Somehow I remembered this incorrectly. It should be the following instead:
>
> depends on POWER_SEQUENCING || !POWER_SEQUENCING
We have depends on ... if ... expression nowadays for that kind of case.
> and the dependency issue mentioned below then goes away.
>
> > But I ran into a dozen or so drivers that have "select USB", mostly
> > input devices:
> >
> > config TOUCHSCREEN_USB_COMPOSITE
> > tristate "USB Touchscreen Driver"
> > depends on USB_ARCH_HAS_HCD
> > select USB
> >
> > Kconfig complains about unmet dependencies.
> >
> > > I see Andy has some suggestions but in general I like this approach much better
> > > than adding the pwrseq_get_index() function. Thanks!
--
With Best Regards,
Andy Shevchenko