Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: hisi_dma: switch from 'pci_' to 'dma_' API

The wrappers in include/linux/pci-dma-compat.h should go away.

pci_set_dma_mask()/pci_set_consistent_dma_mask() should be
replaced with dma_set_mask()/dma_set_coherent_mask(),
and use dma_set_mask_and_coherent() for both.

Signed-off-by: Qing Wang <wangqing@vivo.com>
Link: https://lore.kernel.org/r/1633663733-47199-5-git-send-email-wangqing@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Qing Wang and committed by
Vinod Koul
d77143dd 1365e117

+1 -5
+1 -5
drivers/dma/hisi_dma.c
··· 519 519 return ret; 520 520 } 521 521 522 - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 523 - if (ret) 524 - return ret; 525 - 526 - ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 522 + ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); 527 523 if (ret) 528 524 return ret; 529 525