* [PATCH] s390/ism: switch from 'pci_' to 'dma_' API
@ 2021-08-23 21:17 Christophe JAILLET
2021-09-09 6:02 ` Karsten Graul
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2021-08-23 21:17 UTC (permalink / raw)
To: jwi, kgraul, hca, gor, borntraeger
Cc: linux-s390, netdev, linux-kernel, kernel-janitors, Christophe JAILLET
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)
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
If needed, see post from Christoph Hellwig on the kernel-janitors ML:
https://marc.info/?l=kernel-janitors&m=158745678307186&w=4
This has *NOT* been compile tested because I don't have the needed
configuration.
---
drivers/s390/net/ism_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/s390/net/ism_drv.c b/drivers/s390/net/ism_drv.c
index 26cc943d2034..5f7e28de8b15 100644
--- a/drivers/s390/net/ism_drv.c
+++ b/drivers/s390/net/ism_drv.c
@@ -555,7 +555,7 @@ static int ism_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (ret)
goto err_disable;
- ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
+ ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
if (ret)
goto err_resource;
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] s390/ism: switch from 'pci_' to 'dma_' API
2021-08-23 21:17 [PATCH] s390/ism: switch from 'pci_' to 'dma_' API Christophe JAILLET
@ 2021-09-09 6:02 ` Karsten Graul
0 siblings, 0 replies; 2+ messages in thread
From: Karsten Graul @ 2021-09-09 6:02 UTC (permalink / raw)
To: Christophe JAILLET, jwi, hca, gor, borntraeger
Cc: linux-s390, netdev, linux-kernel, kernel-janitors
On 23/08/2021 23:17, Christophe JAILLET wrote:
> 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)
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> If needed, see post from Christoph Hellwig on the kernel-janitors ML:
> https://marc.info/?l=kernel-janitors&m=158745678307186&w=4
>
> This has *NOT* been compile tested because I don't have the needed
> configuration.
> ---
> drivers/s390/net/ism_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thank you for the patch. I compile tested successfully, we will
include the patch in our next submission for the net-next tree.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-09 6:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 21:17 [PATCH] s390/ism: switch from 'pci_' to 'dma_' API Christophe JAILLET
2021-09-09 6:02 ` Karsten Graul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).