Re: [PATCH v2 02/34] component: Introduce the aggregate bus_type
From: Stephen Boyd
Date: Thu Oct 07 2021 - 21:37:58 EST
Quoting Saravana Kannan (2021-10-07 18:32:20)
> On Thu, Oct 7, 2021 at 6:24 PM Stephen Boyd <swboyd@xxxxxxxxxxxx> wrote:
> >
> > Anyway, I think we still have to do a rescan so that we can try to bind
> > the aggregate device. Is there a better API to use for that?
>
> If you know the exact device, you could call device_attach()? That's
> what bus_rescan_devices() eventually calls, but you skip the
> unnecessary looping over all the other devices.
>
Unfortunately we don't know the device. At this point it's possible that
the aggregate device hasn't even been registered yet.