Re: [PATCH v2 4/7] drivers: cleanup devargs lookup in bus scan

fengchengwen
2026-03-28T03:13:56Z

For uacce part,
Acked-by: Chengwen Feng <fengchengwen@huawei.com>

On 3/26/2026 6:24 PM, David Marchand wrote:
> Don't hardcode the bus names in the RTE_EAL_DEVARGS_FOREACH() calls.
> The bus name is set by code in EAL.
> Even if there is nothing broken, let's reuse the name from the bus object.
>
> And remove the now useless macros.
>
> Note: in the ifpga bus case, the lookup loop was using an incorrect macro
> (IFPGA_ARG_NAME instead of IFPGA_BUS_NAME), yet it was working fine
> as this macro is aligned with the ifpga bus name.
> Besides, the raw/ifpga wants to hotplug a device in this bus, so keep
> this bus name macro and add a check the bus name is aligned at init time.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> Acked-by: Kevin Traynor <ktraynor@redhat.com>
> Tested-by: Maxime Leroy <maxime@leroys.fr>
> ---
> Changes since v1:
> - fixed ifpga hotplug in raw/ifpga,