Skip to contentSkip to conversation

ata: replace chan->device->dev with dmaengine_get_provider_device()

PATCH In review [email protected] 2 participants 2 messages Nov 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: replace chan->device->dev with dmaengine_get_provider_device()

From: Frank Li <[email protected]>

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
---
 drivers/ata/sata_dwc_460ex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/sata_dwc_460ex.c +1 -1
index 93a7651ec672d..5bfad9a8c8162 100644
@@ -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;
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · On 11/4/26 06:24, [email protected] wrote:

From: Frank Li <[email protected]>

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

Please drop this.

Quoted 1 line

The commit title should be:

ata: sata_dwc_460ex: use dmaengine_get_provider_device() in sata_dwc_dma_filter()

With that fixed, looks OK to me, so feel free to add:

Signature · 2 lines
Damien Le Moal
Western Digital Research