ata: replace chan->device->dev with dmaengine_get_provider_device()
Subsystems (2)
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.
--- drivers/ata/sata_dwc_460ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/sata_dwc_460ex.c +1 -1
@@ -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
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 accessingchan->device->devto get the DMA provider device.No functional change intended. Prepare make to struct
dma_deviceprivate to the DMA engine.Assisted-by LLM
Please drop this.
Quoted 1 line
Signed-off-by Frank Li <[email protected]>
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