dmaengine: idxd: Simplify code and axe the use of a deprecated API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 8 Jul 2021 05:08:26 +0000 (07:08 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jul 2021 04:51:05 +0000 (10:21 +0530)
commit53b50458110d829c8fc45e7803a335a515698fd8
tree52bf2d4e0a73635e41ee9b1ab1d1e556f62f2805
parentfe364a7d95c24e07e9b3f2ab917f01d6d8330bba
dmaengine: idxd: Simplify code and axe the use of a deprecated API

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

Replace 'pci_set_dma_mask/pci_set_consistent_dma_mask' by an equivalent
and less verbose 'dma_set_mask_and_coherent()' call.

Even if the code may look different, it should have exactly the same
run-time behavior.
If pci_set_dma_mask(64) fails and pci_set_dma_mask(32) succeeds, then
pci_set_consistent_dma_mask(64) will also fail.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/70c8a3bc67e41c5fefb526ecd64c5174c1e2dc76.1625720835.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c