[PATCH v2 1/1] nvmet: replace chan->device->dev with dmaengine_get_provider_device()
Frank.Li at oss.nxp.com
Frank.Li at oss.nxp.com
Mon Nov 30 08:54:01 PST 2026
From: Frank Li <Frank.Li at nxp.com>
Use the dmaengine_get_provider_device() API instead of directly
accessing chan->device->dev to get the DMA provider device.
No functional change intended. Prepare to make struct dma_device private
to the DMA engine.
Signed-off-by: Frank Li <Frank.Li at nxp.com>
---
Change in v2
- correct tag nvmet
- change to prepare to make ...
- remove Assisted-by: LLM
---
drivers/nvme/target/pci-epf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/target/pci-epf.c b/drivers/nvme/target/pci-epf.c
index 4199fead04ff3..ffb42244cc233 100644
--- a/drivers/nvme/target/pci-epf.c
+++ b/drivers/nvme/target/pci-epf.c
@@ -281,7 +281,7 @@ static bool nvmet_pci_epf_dma_filter(struct dma_chan *chan, void *arg)
memset(&caps, 0, sizeof(caps));
dma_get_slave_caps(chan, &caps);
- return chan->device->dev == filter->dev &&
+ return dmaengine_get_provider_device(chan) == filter->dev &&
(filter->dma_mask & caps.directions);
}
--
2.43.0
More information about the Linux-nvme
mailing list