* [PATCH 1/1] nvme: replace chan->device->dev with dmaengine_get_provider_device()
@ 2026-11-03 21:28 Frank.Li
2026-11-30 15:43 ` Frank Li
2026-11-30 16:46 ` Niklas Cassel
0 siblings, 2 replies; 3+ messages in thread
From: Frank.Li @ 2026-11-03 21:28 UTC (permalink / raw)
To: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni,
open list:NVM EXPRESS TARGET DRIVER, open list
Cc: imx, vkoul, Frank Li
From: Frank Li <Frank.Li@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 make to struct dma_device private
to the DMA engine.
Assisted-by: LLM
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
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 a8df176c1a574..4a2def0b7cc3a 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] nvme: replace chan->device->dev with dmaengine_get_provider_device()
2026-11-03 21:28 [PATCH 1/1] nvme: replace chan->device->dev with dmaengine_get_provider_device() Frank.Li
@ 2026-11-30 15:43 ` Frank Li
2026-11-30 16:46 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2026-11-30 15:43 UTC (permalink / raw)
To: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni,
Niklas Cassel, open list:NVM EXPRESS TARGET DRIVER, open list
Cc: imx, vkoul, Frank Li
On Tue, Nov 03, 2026 at 04:28:37PM -0500, Frank.Li@oss.nxp.com wrote:
> From: Frank Li <Frank.Li@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 make to struct dma_device private
> to the DMA engine.
>
> Assisted-by: LLM
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
Add Niklas Cassel and ping, just trivial one line change.
Frank
> 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 a8df176c1a574..4a2def0b7cc3a 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] nvme: replace chan->device->dev with dmaengine_get_provider_device()
2026-11-03 21:28 [PATCH 1/1] nvme: replace chan->device->dev with dmaengine_get_provider_device() Frank.Li
2026-11-30 15:43 ` Frank Li
@ 2026-11-30 16:46 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-11-30 16:46 UTC (permalink / raw)
To: Frank.Li
Cc: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni,
open list:NVM EXPRESS TARGET DRIVER, open list, imx, vkoul,
Frank Li
Hello Frank,
The subject for this driver usually has prefix:
'nvmet: pci-epf:' rather than 'nvme:'.
On Tue, Nov 03, 2026 at 04:28:37PM -0500, Frank.Li@oss.nxp.com wrote:
> From: Frank Li <Frank.Li@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 make to struct dma_device private
Nit:
"Prepare to make struct dma_device private ..."
sounds strictly more correct.
> to the DMA engine.
>
> Assisted-by: LLM
Commit 1e035297ffda ("docs: remove Assisted-by references") dropped this
tag in v7.4-rc1, and checkpatch now reports:
WARNING: Non-standard signature: Assisted-by:
ERROR: Unrecognized email address: 'LLM'
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> 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 a8df176c1a574..4a2def0b7cc3a 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);
Code change itself looks good to me though.
Kind regards,
Niklas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-30 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 21:28 [PATCH 1/1] nvme: replace chan->device->dev with dmaengine_get_provider_device() Frank.Li
2026-11-30 15:43 ` Frank Li
2026-11-30 16:46 ` Niklas Cassel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®