]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: idxd: Add idxd_pci_probe_alloc() helper
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 22 Nov 2024 23:30:24 +0000 (15:30 -0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 24 Dec 2024 10:38:04 +0000 (16:08 +0530)
commit087e89b69b5fe5529a8809a06b4b4680e54f87e2
treed2fb909e6dc96a265cbc1e972dbe97b8959b0caf
parent5d6670033a67b288ffbaa0774966f356b9c4ba5d
dmaengine: idxd: Add idxd_pci_probe_alloc() helper

Add the idxd_pci_probe_alloc() helper to probe IDXD PCI device with or
without allocating and setting idxd software values.

The idxd_pci_probe() function is refactored to call this helper and
always probe the IDXD device with allocating and setting the software
values.

This helper will be called later in the Function Level Reset (FLR)
process without modifying the idxd software data.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20241122233028.2762809-2-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c