mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 1/1] ata: sata_dwc_460ex: replace chan->device->dev with dmaengine_get_provider_device()
@ 2026-11-04 15:06 Frank.Li
  0 siblings, 0 replies; only message in thread
From: Frank.Li @ 2026-11-04 15:06 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel,
	open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers),
	open list
  Cc: imx, 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.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
change in v2
- collect  Damien Le Moal review tags
- add sata_dwc_460ex in subject
- remove assisted-by: llm
---
 drivers/ata/sata_dwc_460ex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 93a7651ec672d..5bfad9a8c8162 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -192,7 +192,7 @@ static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
 {
 	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
 
-	if (dws->dma_dev != chan->device->dev)
+	if (dws->dma_dev != dmaengine_get_provider_device(chan))
 		return false;
 
 	chan->private = dws;
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 15:06 [PATCH v2 1/1] ata: sata_dwc_460ex: replace chan->device->dev with dmaengine_get_provider_device() Frank.Li

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®