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

dmaengine: hsu: 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-4-git-send-email-wangqing@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Qing Wang and committed by
Vinod Koul
bec897e0 d77143dd

+1 -5
+1 -5
drivers/dma/hsu/pci.c
··· 65 65 pci_set_master(pdev); 66 66 pci_try_set_mwi(pdev); 67 67 68 - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 69 - if (ret) 70 - return ret; 71 - 72 - ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 68 + ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); 73 69 if (ret) 74 70 return ret; 75 71