From: Cai Huoqing <hidden> Date: 2021-09-25 13:40:29
Use dma_map_single() instead of pci_map_single(),
because the pci function wrappers are not called here.
Signed-off-by: Cai Huoqing <redacted>
---
drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Cai Huoqing <hidden> Date: 2021-09-25 13:40:34
Use dma_alloc_coherent() instead of pci_alloc_consistent(),
because only dma_alloc_coherent() is called here.
Signed-off-by: Cai Huoqing <redacted>
---
drivers/net/ethernet/broadcom/b44.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1200,7 +1200,7 @@ static int b44_alloc_consistent(struct b44 *bp, gfp_t gfp)bp->rx_ring=dma_alloc_coherent(bp->sdev->dma_dev,size,&bp->rx_ring_dma,gfp);if(!bp->rx_ring){-/* Allocation may have failed due to pci_alloc_consistent+/* Allocation may have failed due to dma_alloc_coherentinsistingonuseofGFP_DMA,whichismorerestrictivethannecessary...*/structdma_desc*rx_ring;
From: Cai Huoqing <hidden> Date: 2021-09-25 13:40:36
Use dma_alloc_coherent() instead of pci_alloc_consistent(),
because only dma_alloc_coherent() is called here.
Signed-off-by: Cai Huoqing <redacted>
---
v1->v2: Fix dma_alloc_consistent with dma_alloc_coherent.
drivers/net/ethernet/sis/sis190.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Cai Huoqing <hidden> Date: 2021-09-25 13:40:38
Use dma_xxx_xxx() instead of pci_xxx_xxx(),
because the pci function wrappers are not called here.
Signed-off-by: Cai Huoqing <redacted>
---
drivers/net/ethernet/smsc/smsc9420.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@@ -1551,7 +1551,7 @@ smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id)if(!pd->rx_ring)gotoout_free_io_4;-/* descriptors are aligned due to the nature of pci_alloc_consistent */+/* descriptors are aligned due to the nature of dma_alloc_coherent */pd->tx_ring=(pd->rx_ring+RX_RING_SIZE);pd->tx_dma_addr=pd->rx_dma_addr+sizeof(structsmsc9420_dma_desc)*RX_RING_SIZE;
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
On Sat, 25 Sep 2021 21:40:10 +0800 you wrote:
Use dma_map_single() instead of pci_map_single(),
because the pci function wrappers are not called here.
Signed-off-by: Cai Huoqing <redacted>
---
drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)