Re: [PATCH v3 5/7] bus: factorize devargs lookup

David Marchand
2026-04-14T10:43:35Z

On Mon, 13 Apr 2026 at 21:18, Thomas Monjalon <thomas@monjalon.net> wrote:
> 07/04/2026 13:52, David Marchand:
> > Each bus reimplements some similar devargs lookup code.
> >
> > The differences are in how some bus (PCI, VMBUS etc...) normalizes the
> > device names. We can't use the .parse existing handler from outside the
> > bus code itself, as the size of the bus specific device location address
> > is unknown.
> > Introduce a bus specific helper to compare two device names and
> > hide this ugly detail.
>
> I agree with introducing a new bus helper.
>
> [...]
> > + /* The name in the devargs is usually prefixed with <bus>: */
>
> Is it usually prefixed or always prefixed?

"usually", for legacy reasons (like PCI address are understood as is,
or with pci: prefix).

--
David Marchand