[PATCH v2 6/7] bus: factorize device selection
Kevin Traynor
ktraynor at redhat.com
Thu Mar 26 12:52:31 CET 2026
On 3/26/26 10:24 AM, David Marchand wrote:
> All buses (thankfully) implement the same logic when it comes to
> selecting the devices to probe based on -a/-b options.
> As we want to adjust how devices are selected, provide a common helper
> in EAL and use it in the buses.
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Reviewed-by: Robin Jarry <rjarry at redhat.com>
> Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> Tested-by: Maxime Leroy <maxime at leroys.fr>
> ---
> Changes since v1:
> - fixed device selection in dma/idxd,
>
> Changes since RFC v2:
> - changed API to query about a device name and hide the devargs meaning
> in the common code,
>
> ---
> drivers/bus/auxiliary/auxiliary_common.c | 19 ----------------
> drivers/bus/auxiliary/linux/auxiliary.c | 2 +-
> drivers/bus/auxiliary/private.h | 6 -----
> drivers/bus/cdx/cdx.c | 21 +-----------------
> drivers/bus/dpaa/dpaa_bus.c | 24 ++++++--------------
> drivers/bus/fslmc/fslmc_bus.c | 22 ++++++-------------
> drivers/bus/pci/bsd/pci.c | 5 ++++-
> drivers/bus/pci/linux/pci.c | 2 +-
> drivers/bus/pci/pci_common.c | 23 -------------------
> drivers/bus/pci/private.h | 11 ----------
> drivers/bus/pci/windows/pci.c | 4 +++-
> drivers/bus/platform/platform.c | 28 ++----------------------
> drivers/bus/uacce/uacce.c | 22 +------------------
> drivers/bus/vmbus/vmbus_common.c | 25 +--------------------
> drivers/dma/idxd/idxd_bus.c | 8 ++-----
> lib/eal/common/eal_common_bus.c | 19 ++++++++++++++++
> lib/eal/include/bus_driver.h | 6 +++++
> 17 files changed, 55 insertions(+), 192 deletions(-)
Acked-by: Kevin Traynor <ktraynor at redhat.com>
More information about the dev
mailing list