Re: [PATCH] mlxsw: switch from 'pci_' to 'dma_' API

2020-11-30 Thread Christophe JAILLET
Le 29/11/2020 à 22:46, Heiner Kallweit a écrit : Am 29.11.2020 um 22:17 schrieb Christophe JAILLET: @@ -1817,17 +1817,17 @@ static int mlxsw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto err_pci_request_regions; } - err = pci_set_dma_mask(pdev,

Re: [PATCH] mlxsw: switch from 'pci_' to 'dma_' API

2020-11-29 Thread Heiner Kallweit
Am 29.11.2020 um 22:17 schrieb Christophe JAILLET: > he wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has been > hand modified to replace GFP_ with a correct flag. > It has been compile tested. > > When memory is a

[PATCH] mlxsw: switch from 'pci_' to 'dma_' API

2020-11-29 Thread Christophe JAILLET
he wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'mlxsw_pci_queue_init()' and 'mlxsw_pci_fw_area_init(