[PATCH] media: mantis: switch from 'pci_' to 'dma_' API

2020-09-13 Thread Christophe JAILLET
2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/media/pci/mantis/mantis_dma.c | 20 ++-

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

2020-09-13 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signe

[PATCH] tulip: de2104x: switch from 'pci_' to 'dma_' API

2020-09-13 Thread Christophe JAILLET
a_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/ethernet/dec/

[PATCH] tulip: dmfe: switch from 'pci_' to 'dma_' API

2020-09-13 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signe

[PATCH] tulip: uli526x: switch from 'pci_' to 'dma_' API

2020-09-13 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signe

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

2020-09-13 Thread Christophe JAILLET
Le 13/09/2020 à 08:55, Leon Romanovsky a écrit : On Sun, Sep 13, 2020 at 08:14:17AM +0200, Christophe JAILLET wrote: > [...] @@ -504,9 +510,8 @@ static int alloc_list(struct net_device *dev) sizeof(struct netdev_desc)); /* Rubi

[PATCH] tulip: windbond-840: Fix a debug message

2020-09-13 Thread Christophe JAILLET
'w89c840_open()' is incorrectly reported in a debug message. Use __func__ instead. While at it, fix some style issue in the same function. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/dec/tulip/winbond-840.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH] tulip: windbond-840: switch from 'pci_' to 'dma_' API

2020-09-13 Thread Christophe JAILLET
a_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- d

[PATCH] net: dl2k: switch from 'pci_' to 'dma_' API

2020-09-13 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off

[PATCH V2] natsemi: switch from 'pci_' to 'dma_' API

2020-09-12 Thread Christophe JAILLET
e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Chris

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

2020-09-12 Thread Christophe JAILLET
ma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-jani

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

2020-09-12 Thread Christophe JAILLET
Le 12/09/2020 à 12:25, Christophe JAILLET a écrit : The 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

[PATCH] net: tehuti: switch from 'pci_' to 'dma_' API

2020-09-12 Thread Christophe JAILLET
+dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Chris

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

2020-09-12 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask

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

2020-09-12 Thread Christophe JAILLET
2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/ethernet/silan/sc92031.c | 28 ++

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

2020-09-12 Thread Christophe JAILLET
ion e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET ---

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

2020-09-12 Thread Christophe JAILLET
ion e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET ---

[PATCH] net: tc35815: switch from 'pci_' to 'dma_' API

2020-09-08 Thread Christophe JAILLET
dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307

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

2020-09-08 Thread Christophe JAILLET
e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post

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

2020-09-07 Thread Christophe JAILLET
mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/wireless/cisco/airo.c | 15 +-- 1 file change

[PATCH v2] rtlwifi: switch from 'pci_' to 'dma_' API

2020-09-07 Thread Christophe JAILLET
ession e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christ

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

2020-09-06 Thread Christophe JAILLET
2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET -

[PATCH RESEND] smsc9420: switch from 'pci_' to 'dma_' API

2020-09-03 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask

[PATCH RESEND] epic100: switch from 'pci_' to 'dma_' API

2020-09-03 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by:

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

2020-08-23 Thread Christophe JAILLET
e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post

[PATCH] net: atheros: switch from 'pci_' to 'dma_' API

2020-08-23 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask

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

2020-08-23 Thread Christophe JAILLET
_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janito

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

2020-08-23 Thread Christophe JAILLET
ression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/ethernet/

[PATCH] media: staging/intel-ipu3: css: Correctly reset some memory

2020-08-22 Thread Christophe JAILLET
The intent here is to reset the whole 'scaler_coeffs_luma' array, not just the first element. Fixes: e0a5b744 ("media: staging/intel-ipu3: css: Compute and program ccs") Signed-off-by: Christophe JAILLET --- drivers/staging/media/ipu3/ipu3-css-params.c | 2 +- 1 file changed, 1

[PATCH] nvmet-fc: Fix a missed _irqsave version of spin_lock in 'nvmet_fc_fod_op_done()'

2020-08-21 Thread Christophe JAILLET
abort handling") Signed-off-by: Christophe JAILLET --- Not tested, only based on what looks logical to me according to surrounding code --- drivers/nvme/target/fc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index 55

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

2020-08-20 Thread Christophe JAILLET
Le 06/08/2020 à 23:23, David Miller a écrit : From: Christophe JAILLET Date: Thu, 6 Aug 2020 22:19:35 +0200 The wrappers in include/linux/pci-dma-compat.h should go away. Christophe, the net-next tree is closed so I'd like to ask that you defer submitting these conversion patches until

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

2020-08-20 Thread Christophe JAILLET
_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If ne

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

2020-08-20 Thread Christophe JAILLET
ession e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christ

[PATCH RESEND] rtl818x_pci: switch from 'pci_' to 'dma_' API

2020-08-20 Thread Christophe JAILLET
ma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=15

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

2020-08-19 Thread Christophe JAILLET
ma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158

[PATCH] mwifiex: Clean up some err and dbg messages

2020-08-19 Thread Christophe JAILLET
functions - align some code Signed-off-by: Christophe JAILLET --- drivers/net/wireless/marvell/mwifiex/pcie.c | 25 + 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c index

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

2020-08-19 Thread Christophe JAILLET
ync_sg_for_device(>dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev,

[PATCH] media: mceusb: Avoid GFP_ATOMIC where it is not needed

2020-08-15 Thread Christophe JAILLET
There is no point in using GFP_ATOMIC here. It is a probe function, and GFP_KERNEL is already used the line before and the line after. Use GFP_KERNEL instead. Signed-off-by: Christophe JAILLET --- drivers/media/rc/mceusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] usb: gadget: f_tcm: Fix some resource leaks in some error paths

2020-08-13 Thread Christophe JAILLET
If a memory allocation fails within a 'usb_ep_alloc_request()' call, the already allocated memory must be released. Fix a mix-up in the code and free the correct requests. Fixes: c52661d60f63 ("usb-gadget: Initial merge of target module for UASP + BOT") Signed-off-by: Christop

[PATCH] xhci: Do not use GFP_KERNEL in (potentially) atomic context

2020-08-13 Thread Christophe JAILLET
alled from 'xhci_urb_enqueue()', uses GFP_KERNEL. Be safe and pass the mem_flags to this function as well. Fixes: ddba5cd0aeff ("xhci: Use command structures when queuing commands on the command ring") Signed-off-by: Christophe JAILLET --- I'm not 100% sure of the Fixes tag. Th

[PATCH] staging: rtl8192u: Do not use GFP_KERNEL in atomic context

2020-08-13 Thread Christophe JAILLET
compiler warning") Signed-off-by: Christophe JAILLET --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index 195d963c4fb

Re: [PATCH] drm: amdgpu: Use the correct size when allocating memory

2020-08-10 Thread Marion & Christophe JAILLET
Le 10/08/2020 à 17:42, Dan Carpenter a écrit : On Sun, Aug 09, 2020 at 10:34:06PM +0200, Christophe JAILLET wrote: When '*sgt' is allocated, we must allocated 'sizeof(**sgt)' bytes instead of 'sizeof(*sg)'. 'sg' (i.e. struct scatterlist) is smaller than 'sgt' (i.e struct sg_table), so

[PATCH] drm: amdgpu: Use the correct size when allocating memory

2020-08-09 Thread Christophe JAILLET
f v3") Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c index 134cc36e30c5..0739e259bf91 100644 --- a/d

[PATCH] clk: davinci: Use the correct size when allocating memory

2020-08-09 Thread Christophe JAILLET
'sizeof(*pllen)' should be used in place of 'sizeof(*pllout)' to avoid a small over-allocation. Fixes: 2d1726915159 ("clk: davinci: New driver for davinci PLL clocks") Signed-off-by: Christophe JAILLET --- drivers/clk/davinci/pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] staging: ks7010: Do not use GFP_KERNEL in atomic context

2020-08-09 Thread Christophe JAILLET
ucture). Such calls are guarded by the __netif_tx_lock spinlock. So memory allocation must be atomic. So, use GFP_ATOMIC instead of GFP_KERNEL 'in michael_mic()' Fixes: ??? Signed-off-by: Christophe JAILLET --- This is completely speculative. I don't know if the call chain given above if possible

[PATCH] mwifiex: Do not use GFP_KERNEL in atomic context

2020-08-09 Thread Christophe JAILLET
NEL when memory is allocated in 'mwifiex_parse_single_response_buf()'. Fixes: 7c6fa2a843c5 ("mwifiex: use cfg80211 dynamic scan table and cfg80211_get_bss API") or Fixes: 601216e12c65e ("mwifiex: process RX packets in SDIO IRQ thread directly") Signed-off-by: Christophe JAILLET --- This

[PATCH] usb: gadget: tegra-xudc: Avoid GFP_ATOMIC where it is not needed

2020-08-09 Thread Christophe JAILLET
There is no need to use GFP_ATOMIC here. It is a probe function, no spinlock is taken. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/udc/tegra-xudc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc

[PATCH] watchdog: pcwd_usb: Avoid GFP_ATOMIC where it is not needed

2020-08-09 Thread Christophe JAILLET
There is no need to use GFP_ATOMIC here. It is a probe function, no spinlock is taken and GFP_KERNEL is used just before and just after this 'usb_alloc_coherent()' call. Signed-off-by: Christophe JAILLET --- drivers/watchdog/pcwd_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

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

2020-08-06 Thread Christophe JAILLET
Le 06/08/2020 à 23:23, David Miller a écrit : From: Christophe JAILLET Date: Thu, 6 Aug 2020 22:19:35 +0200 The wrappers in include/linux/pci-dma-compat.h should go away. Christophe, the net-next tree is closed so I'd like to ask that you defer submitting these conversion patches until

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

2020-08-06 Thread Christophe JAILLET
2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/wireless/admtek/adm8211.c | 83

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

2020-08-06 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask

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

2020-08-06 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by:

[PATCH] tty: serial: icom: switch from 'pci_' to 'dma_' API

2020-08-06 Thread Christophe JAILLET
pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/

[PATCH] tty: synclink_gt: switch from 'pci_' to 'dma_' API

2020-08-05 Thread Christophe JAILLET
e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the

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

2020-08-04 Thread Christophe JAILLET
n e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by:

[PATCH] wan: wanxl: switch from 'pci_' to 'dma_' API

2020-08-04 Thread Christophe JAILLET
k(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/wan/wanxl.c | 54 - 1 file

Re: [PATCH] gve: Fix the size used in a 'dma_free_coherent()' call

2020-08-03 Thread Christophe JAILLET
Le 03/08/2020 à 21:35, Joe Perches a écrit : On Mon, 2020-08-03 at 21:19 +0200, Christophe JAILLET wrote: Le 03/08/2020 à 17:41, Jakub Kicinski a écrit : On Sun, 2 Aug 2020 16:15:23 +0200 Christophe JAILLET wrote: Update the size used in 'dma_free_coherent()' in order to match the one used

Re: [PATCH] gve: Fix the size used in a 'dma_free_coherent()' call

2020-08-03 Thread Christophe JAILLET
Le 03/08/2020 à 17:41, Jakub Kicinski a écrit : On Sun, 2 Aug 2020 16:15:23 +0200 Christophe JAILLET wrote: Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 893ce44df5 ("gve: Add basic driver framework for Co

[PATCH] spi: a3700: Remove a useless memset

2020-08-02 Thread Christophe JAILLET
Memory allocated by 'spi_alloc_master()' is already zeroed. Remove a redundant memset. Signed-off-by: Christophe JAILLET --- drivers/spi/spi-armada-3700.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c index fcde419e480c

[PATCH] atm: he: Fix the size used in a 'dma_free_coherent()' call

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()', in 'he_init_tpdrq()'. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- drivers/atm/he.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] atm: idt77252: Fix the size used in a 'dma_alloc_coherent()' call

2020-08-02 Thread Christophe JAILLET
This should be TSQSIZE in order to be consistent with the surrounding code and the corresponding 'dma_free_coherent()' in 'deinit_tsq()' This is harmless because RSQSIZE and TSQSIZE have the same value (i.e. 8192) Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christop

[PATCH] crypto: ixp4xx - Fix the size used in a 'dma_free_coherent()' call

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()', in 'setup_crypt_desc()'. Fixes: 81bef0150074 ("crypto: ixp4xx - Hardware crypto support for IXP4xx CPUs") Signed-off-by: Christophe JAILLET --- driv

[PATCH] gve: Fix the size used in a 'dma_free_coherent()' call

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 893ce44df5 ("gve: Add basic driver framework for Compute Engine Virtual NIC") Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/google/gve/gve_ad

[PATCH 2/2] net: spider_net: Remove a useless memset

2020-08-02 Thread Christophe JAILLET
Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Signed-off-by: Christophe JAILLET --- NOT compile tested, because I don't have the configuration for that --- drivers/net/ethern

[PATCH 1/2] net: spider_net: Fix the size used in a 'dma_free_coherent()' call

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()', in 'spider_net_init_chain()'. Fixes: d4ed8f8d1fb7 ("Spidernet DMA coalescing") Signed-off-by: Christophe JAILLET --- NOT compile tested, because I

[PATCH] net: sgi: ioc3-eth: Fix the size used in some 'dma_free_coherent()' calls

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 369a782af0f1 ("net: sgi: ioc3-eth: ensure tx ring is 16k aligned.") Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 ++-- 1 fi

[PATCH] ath10k: Fix the size used in a 'dma_free_coherent()' call in an error handling path

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 1863008369ae ("ath10k: fix shadow register implementation for WCN3990") Signed-off-by: Christophe JAILLET --- This patch looks obvious to me, but commit 18

[PATCH] scsi: qla2xxx: Fix the size used in a 'dma_free_coherent()' call

2020-08-02 Thread Christophe JAILLET
t;) Fixes: 4161cee52df8 ("[SCSI] qla4xxx: Add host statistics support") Signed-off-by: Christophe JAILLET --- The memset has been added in the same commit, so I think it is ok to remove it in the same path. --- drivers/scsi/qla2xxx/qla_mbx.c | 4 +--- 1 file changed, 1 insertion(+), 3 dele

[PATCH] scsi: qla4xxx: Fix an error handling path in 'qla4xxx_get_host_stats()'

2020-08-02 Thread Christophe JAILLET
Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 4161cee52df8 ("[SCSI] qla4xxx: Add host statistics support") Signed-off-by: Christophe JAILLET --- drivers/scsi/qla4xxx/ql4_os.c | 2 +- 1 file changed, 1

[PATCH] media: dm1105: switch from 'pci_' to 'dma_' API

2020-07-28 Thread Christophe JAILLET
sistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/media/pci/dm1105/dm1105.c | 14 ++ 1 fil

Re: [PATCH 2/2] media: bt8xx: avoid a useless memset

2020-07-28 Thread Christophe JAILLET
Le 27/07/2020 à 18:16, Joe Perches a écrit : On Mon, 2020-07-27 at 09:09 -0700, Joe Perches wrote: On Mon, 2020-07-27 at 15:51 +0200, Christophe JAILLET wrote: Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory ret

Re: [PATCH 2/2] media: bt8xx: avoid a useless memset

2020-07-28 Thread Christophe JAILLET
Le 27/07/2020 à 18:09, Joe Perches a écrit : On Mon, 2020-07-27 at 15:51 +0200, Christophe JAILLET wrote: Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") [] diff --git a/drivers

[PATCH 1/2] media: bt8xx: switch from 'pci_' to 'dma_' API

2020-07-27 Thread Christophe JAILLET
, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christ

[PATCH 2/2] media: bt8xx: avoid a useless memset

2020-07-27 Thread Christophe JAILLET
Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Signed-off-by: Christophe JAILLET --- drivers/media/pci/bt8xx/btcx-risc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH] media: b2c2: switch from 'pci_' to 'dma_' API

2020-07-27 Thread Christophe JAILLET
, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=15874

[PATCH 2/2] drm/radeon: avoid a useless memset

2020-07-27 Thread Christophe JAILLET
Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/radeon/radeon_gart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drive

[PATCH 1/2] drm/radeon: switch from 'pci_' to 'dma_' API

2020-07-27 Thread Christophe JAILLET
a_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/gpu/drm/ra

[PATCH] crypto: hifn_795x - switch from 'pci_' to 'dma_' API

2020-07-27 Thread Christophe JAILLET
n e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by:

Re: [PATCH 1/2] misc: hpilo: switch from 'pci_' to 'dma_' API

2020-07-23 Thread Christophe JAILLET
Le 23/07/2020 à 09:34, Greg KH a écrit : On Sat, Jul 18, 2020 at 09:02:24AM +0200, 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 and has been hand modified to replace GFP_ with a correct

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

2020-07-22 Thread Christophe JAILLET
error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see

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

2020-07-22 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2)

[PATCH 2/2] ipw2x00: switch from 'pci_' to 'dma_' API

2020-07-22 Thread Christophe JAILLET
t;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev,

[PATCH 1/2] ipw2100: Use GFP_KERNEL instead of GFP_ATOMIC in some memory allocation

2020-07-22 Thread Christophe JAILLET
calls 'ipw2100_msg_allocate()' which already allocates some memory using GFP_KERNEL. Signed-off-by: Christophe JAILLET --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/i

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

2020-07-20 Thread Christophe JAILLET
ng_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see po

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

2020-07-20 Thread Christophe JAILLET
2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/ethernet/rdc/r6040.c | 64

[PATCH] net: packetengines: switch from 'pci_' to 'dma_' API

2020-07-20 Thread Christophe JAILLET
ma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678

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

2020-07-18 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2)

[PATCH] net/fealnx: switch from 'pci_' to 'dma_' API

2020-07-18 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2)

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

2020-07-18 Thread Christophe JAILLET
ce(>dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) + dma_set_coherent_mask(>dev, e2) Signed-of

[PATCH] drm/i810: switch from 'pci_' to 'dma_' API

2020-07-18 Thread Christophe JAILLET
dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/gpu/drm/i810/i810_dma.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 1/2] misc: hpilo: switch from 'pci_' to 'dma_' API

2020-07-18 Thread Christophe JAILLET
;dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2)

[PATCH 2/2] misc: hpilo: avoid a useless memset

2020-07-18 Thread Christophe JAILLET
Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Signed-off-by: Christophe JAILLET --- drivers/misc/hpilo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/hpilo.c

[PATCH] net: alteon: Avoid some useless memset

2020-07-16 Thread Christophe JAILLET
Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Replace a kmalloc+memset with a corresponding kzalloc. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/alteon/acenic.c |

[PATCH] net: alteon: switch from 'pci_' to 'dma_' API

2020-07-16 Thread Christophe JAILLET
dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/ethernet/alteon/acenic.c | 114 +-- 1 file change

[PATCH] net: sungem: switch from 'pci_' to 'dma_' API

2020-07-16 Thread Christophe JAILLET
n e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by:

[PATCH] net: sun: cassini: switch from 'pci_' to 'dma_' API

2020-07-16 Thread Christophe JAILLET
ession e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-jani

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

2020-07-14 Thread Christophe JAILLET
(>dev, e2, e3, e4) @@ expression e1, e2; @@ -pci_dma_mapping_error(e1, e2) +dma_mapping_error(>dev, e2) @@ expression e1, e2; @@ -pci_set_dma_mask(e1, e2) +dma_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask

[PATCH] hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path

2020-07-14 Thread Christophe JAILLET
The size used when calling 'pci_alloc_consistent()' and 'pci_free_consistent()' should match. Fix it and have it consistent with the corresponding call in 'rr_close()'. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- drivers/net/hippi/rrunner.c | 4 ++

[PATCH] net: neterion: vxge: switch from 'pci_' to 'dma_' API

2020-07-14 Thread Christophe JAILLET
a_set_mask(>dev, e2) @@ expression e1, e2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- ..

[PATCH] net: neterion: s2io: switch from 'pci_' to 'dma_' API

2020-07-14 Thread Christophe JAILLET
2; @@ -pci_set_consistent_dma_mask(e1, e2) +dma_set_coherent_mask(>dev, e2) Signed-off-by: Christophe JAILLET --- If needed, see post from Christoph Hellwig on the kernel-janitors ML: https://marc.info/?l=kernel-janitors=158745678307186=4 --- drivers/net/ethernet/neterion/s2io.c | 191 ++

<    1   2   3   4   5   6   7   8   9   10   >