[PATCH v2 4/7] drivers: cleanup devargs lookup in bus scan
fengchengwen
fengchengwen at huawei.com
Sat Mar 28 04:13:48 CET 2026
For uacce part,
Acked-by: Chengwen Feng <fengchengwen at 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 at redhat.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> Acked-by: Kevin Traynor <ktraynor at redhat.com>
> Tested-by: Maxime Leroy <maxime at leroys.fr>
> ---
> Changes since v1:
> - fixed ifpga hotplug in raw/ifpga,
More information about the dev
mailing list