All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/7] switch from 'pci_' to 'dma_' API
@ 2021-10-08  3:28 Qing Wang
  2021-10-08  3:28 ` [PATCH V3 1/7] dma: dw-edma-pcie: " Qing Wang
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Qing Wang @ 2021-10-08  3:28 UTC (permalink / raw)
  To: Gustavo Pimentel, Vinod Koul, Viresh Kumar, Andy Shevchenko,
	Zhou Wang, Logan Gunthorpe, Sathya Prakash, Sreekanth Reddy,
	Suganath Prabu Subramani, dmaengine, linux-kernel,
	MPT-FusionLinux.pdl, linux-scsi
  Cc: Qing Wang

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

The patch has been generated with the coccinelle script below.
expression e1, e2;
@@
-    pci_set_dma_mask(e1, e2)
+    dma_set_mask(&e1->dev, e2)

@@
expression e1, e2;
@@
-    pci_set_consistent_dma_mask(e1, e2)
+    dma_set_coherent_mask(&e1->dev, e2)

While at it, some 'dma_set_mask()/dma_set_coherent_mask()' have been
updated to a much less verbose 'dma_set_mask_and_coherent()'.

This type of patches has been going on for a long time, I plan to 
clean it up in the near future. If needed, see post from 
Christoph Hellwig on the kernel-janitors ML:
https://marc.info/?l=kernel-janitors&m=158745678307186&w=4

Qing Wang (7):
  dma: dw-edma-pcie: switch from 'pci_' to 'dma_' API
  dma: dw: switch from 'pci_' to 'dma_' API
  dma: hisi_dma: switch from 'pci_' to 'dma_' API
  dma: hsu: switch from 'pci_' to 'dma_' API
  dma: ioat: switch from 'pci_' to 'dma_' API
  dma: dmaengine: switch from 'pci_' to 'dma_' API
  message: fusion: switch from 'pci_' to 'dma_' API

 drivers/dma/dw-edma/dw-edma-pcie.c | 17 ++++-------------
 drivers/dma/dw/pci.c               |  6 +-----
 drivers/dma/hisi_dma.c             |  6 +-----
 drivers/dma/hsu/pci.c              |  6 +-----
 drivers/dma/ioat/init.c            | 10 ++--------
 drivers/dma/plx_dma.c              | 10 ++--------
 drivers/message/fusion/mptbase.c   | 31 +++++++++----------------------
 7 files changed, 20 insertions(+), 66 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-10-25  6:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  3:28 [PATCH V3 0/7] switch from 'pci_' to 'dma_' API Qing Wang
2021-10-08  3:28 ` [PATCH V3 1/7] dma: dw-edma-pcie: " Qing Wang
2021-10-08  3:28 ` [PATCH V3 5/7] dma: ioat: " Qing Wang
2021-10-08  3:28 ` [PATCH V3 4/7] dma: hsu: " Qing Wang
2021-10-08  3:28 ` [PATCH V3 3/7] dma: hisi_dma: " Qing Wang
2021-10-08  3:28 ` [PATCH V3 2/7] dma: dw: " Qing Wang
2021-10-08  3:28 ` [PATCH V3 6/7] dma: dmaengine: " Qing Wang
2021-10-08  3:28 ` [PATCH V3 7/7] message: fusion: " Qing Wang
2021-10-25  6:55 ` [PATCH V3 0/7] " Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.