[PATCH 6/6] staging: wfx/hif_tx.c: Fix spelling mistake "carefull" => "careful"

2020-08-20 Thread Suraj Upadhyay
Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/hif_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 5110f9b93762..fc12f9dcefce 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx

[PATCH 3/6] staging: wfx/data_rx.c: Fix spelling mistake "negociation" => "negotiation"

2020-08-20 Thread Suraj Upadhyay
Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/data_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/data_rx.c b/drivers/staging/wfx/data_rx.c index 6fb078880742..7fcbbfc53416 100644 --- a/drivers/staging/wfx/data_rx.c +++ b/drivers/staging/wfx

[PATCH 5/6] staging: wfx/hif_rx.c: Fix spelling mistake "negociation" => "negotiation"

2020-08-20 Thread Suraj Upadhyay
Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/hif_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index cc7c0cf226ba..1d32973d8ec1 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx

[PATCH 4/6] staging: wfx/debug.c: Fix spelling mistake "carefull" => "careful"

2020-08-20 Thread Suraj Upadhyay
Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/debug.c b/drivers/staging/wfx/debug.c index 3f1712b7c919..5772e2375370 100644 --- a/drivers/staging/wfx/debug.c +++ b/drivers/staging/wfx/debug.c

[PATCH 2/6] staging: wfx/main.c: Fix a spelling mistake "negociate" => "negotiate"

2020-08-20 Thread Suraj Upadhyay
Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 11dfa088fc86..4263f912760b 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c

[PATCH 1/6] staging: wfx/main.h: fix a spelling and grammar mistake

2020-08-20 Thread Suraj Upadhyay
Fix spelling mistake "extention" => "extension". And correct the statement in passive-voice by adding "be". Signed-off-by: Suraj Upadhyay --- drivers/staging/wfx/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/ma

Re: [PATCH 0/4] Infiniband Subsystem: Remove pci-dma-compat wrapper APIs.

2020-08-09 Thread Suraj Upadhyay
On Sun, Aug 09, 2020 at 11:35:51AM +0300, Gal Pressman wrote: > On 09/08/2020 10:24, Suraj Upadhyay wrote: > > Hii Developers, > > > > This patch series will replace all the legacy pci-dma-compat wrappers > > with the dma-mapping APIs directly in the INFINIBAND Su

[PATCH 5/4] RDMA/efa : Remove pci-dma-compat wrapper APIs

2020-08-09 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/infiniband/hw/efa/efa_main.c | 4 ++-

[PATCH 4/4] RDMA/pvrdma: Remove pci-dma-compat wrapper APIs

2020-08-09 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_m

[PATCH 3/4] RDMA/qib: Remove pci-dma-compat wrapper APIs

2020-08-09 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/infiniband/hw/qib/qib_file_ops.c | 12 +++

[PATCH 2/4] IB/mthca: Remove pci-dma-compat wrapper APIs

2020-08-09 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/infiniband/hw/mthca/mthca_eq.c

[PATCH 1/4] IB/hfi1: Remove pci-dma-compat wrapper APIs

2020-08-09 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/infiniband/hw/hfi1/pcie.c |

[PATCH 0/4] Infiniband Subsystem: Remove pci-dma-compat wrapper APIs.

2020-08-09 Thread Suraj Upadhyay
Upadhyay. Suraj Upadhyay (4): IB/hfi1: Remove pci-dma-compat wrapper APIs IB/mthca: Remove pci-dma-compat wrapper APIs RDMA/qib: Remove pci-dma-compat wrapper APIs RDMA/pvrdma: Remove pci-dma-compat wrapper APIs drivers/infiniband/hw/hfi1/pcie.c | 8 +++ drivers

Re: [PATCH RESEND 1/2] scsi: megaraid: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
n a single > commit. And please don't split semantically identical changes to the > same driver into multiple commits (megaraid [2/2]). > > Thank you! > Hii Martin, Thanks for your response. I sent a patch series for the above changes. Thanks, Suraj Upadhyay > -- > Martin K. PetersenOracle Linux Engineering

[PATCH 7/7] scsi: megaraid: Remove pci-dma-compat wrapper APIs

2020-07-29 Thread Suraj Upadhyay
, E3, E4) @@ expression E1, E2; @@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mas

[PATCH 6/7] scsi: qla2xxx: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
t;dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/qla2xxx/qla_os.c | 4 ++-- 1 file chan

[PATCH 5/7] scsi: hpsa: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
t;dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/hpsa.c | 16 1 file cha

[PATCH 4/7] scsi: mpt3sas: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
t;dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 10 --

[PATCH 3/7] scsi: dc395x: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
t;dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/dc395x.c | 6 +++--- 1 file changed

[PATCH 2/7] scsi: aic7xxx: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
, E3, E4) @@ expression E1, E2; @@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->

[PATCH 1/7] scsi: aacraid: Remove pci-dma-compat wrapper APIs

2020-07-29 Thread Suraj Upadhyay
t;dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/aacraid/aachba.c | 4 ++-- driver

[PATCH 0/7] scsi: Remove pci-dma-compat wrapper APIs.

2020-07-29 Thread Suraj Upadhyay
/alloc_consistent needed some hand modification in replacing the flag GFP_ATOMIC with a proper flag depending upon the context. I would be glad to receive any feedbacks. Thanks, Suraj Upadhyay. Suraj Upadhyay (7): scsi: aacraid: Remove pci-dma-compat wrapper APIs scsi: aic7xxx: Remove pci-dma-compat

[PATCH RESEND] scsi: hpsa and dc395x: Remove pci_dma_compat wrapper APIs.

2020-07-27 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/dc395x.c | 6 +++--- drivers/sc

[PATCH RESEND] scsi: mpt3sas: Remove pci-dma-compat wrapper APIs.

2020-07-27 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 10 --

[PATCH RESEND] scsi: qla2xxx: Remove pci-dma-compat wrapper APIs.

2020-07-27 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/qla2xxx/qla_os.c | 4 ++-- 1 file chan

[PATCH RESEND 1/2] scsi: megaraid: Remove pci-dma-compat wrapper APIs.

2020-07-27 Thread Suraj Upadhyay
@@ expression E1, E2; @@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Si

[PATCH RESEND 2/2] scsi: megaraid: Remove remaining pci-dma-compat wrapper APIs.

2020-07-27 Thread Suraj Upadhyay
@@ expression E1, E2; @@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Si

[PATCH RESEND] scsi: aic7xxx: Remove pci-dma-compat wrapper APIs.

2020-07-27 Thread Suraj Upadhyay
@@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upad

Re: net: decnet: TODO Items

2020-07-19 Thread Suraj Upadhyay
On Sun, Jul 19, 2020 at 10:06:49AM -0700, Stephen Hemminger wrote: > On Fri, 17 Jul 2020 11:48:16 +0530 > Suraj Upadhyay wrote: > > > Hi Maintainers and Developers, > > I am interested in the DECnet TODO list. > > I just need a quick response whether they are wor

[PATCH v2] staging: rts5208: rtsx: Replace depracated MSI API

2020-07-19 Thread Suraj Upadhyay
Replace depracated MSI IRQ enablers and disablers with pci_alloc_irq_vectors and pci_free_irq_vectors respectively. Compile tested. Signed-off-by: Suraj Upadhyay --- Changes: v2: Replace MSI IRQ disablers too. --- drivers/staging/rts5208/rtsx.c | 12 ++-- 1 file changed, 6

[PATCH v2] staging: media: atomisp: Replace depracated MSI APIs

2020-07-19 Thread Suraj Upadhyay
Replace depracated MSI IRQ enabler and disabler with pci_alloc_irq_vectors and pci_free_irq_vectors respectively. And as a result handle the returned error as appropriate. Compile tested. Signed-off-by: Suraj Upadhyay --- Change: v2: Replace the MSI IRQ disabler too. --- drivers/staging

[PATCH v3] staging: kpc2000: Replace depracated MSI APIs

2020-07-19 Thread Suraj Upadhyay
Replace depracated MSI IRQ enabler and disabler with pci_alloc_irq_vectors and pci_free_irq_vectors respectively. Compile tested. Signed-off-by: Suraj Upadhyay --- Changes: v3: Replaced the disabler for MSI IRQ too with pci_free_irq_vectors. v2: Fix the undefined

[PATCH] rculist: Silence unused-value warning.

2020-07-19 Thread Suraj Upadhyay
" by replacing it with an empty expression. Signed-off-by: Suraj Upadhyay --- include/linux/rculist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rculist.h b/include/linux/rculist.h index de9385b9158e..8b8e0584c473 100644 --- a/include/linux/rculist.h

Re: [PATCH] staging: media: atomisp: Replace depracated MSI API.

2020-07-18 Thread Suraj Upadhyay
On Sat, Jul 18, 2020 at 06:56:32PM +0530, Suraj Upadhyay wrote: > Replace depracated pci_enable_msi with pci_alloc_irq_vectors. > And as a result modify how the returned value is handled. > > Signed-off-by: Suraj Upadhyay > --- > drivers/staging/media/atomisp/pci/atomisp_v4

Re: [PATCH v2] staging: rts5208: rtsx: Replace depracated MSI API

2020-07-18 Thread Suraj Upadhyay
On Sat, Jul 18, 2020 at 09:10:30PM +0530, Suraj Upadhyay wrote: > Replace depracated pci_enable_msi with pci_alloc_irq_vectors. > > Signed-off-by: Suraj Upadhyay > --- > drivers/staging/rts5208/rtsx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Hii, don&#

Re: [PATCH v2] staging: kpc2000: Replace depracated MSI API.

2020-07-18 Thread Suraj Upadhyay
On Sat, Jul 18, 2020 at 09:19:51PM +0530, Suraj Upadhyay wrote: > Replace depracated pci_enable_msi with pci_alloc_irq_vectors. > And as a result modify how the returned value is handled. > > Signed-off-by: Suraj Upadhyay > --- > Changes: > v2: Removed t

[PATCH v2] staging: kpc2000: Replace depracated MSI API.

2020-07-18 Thread Suraj Upadhyay
Replace depracated pci_enable_msi with pci_alloc_irq_vectors. And as a result modify how the returned value is handled. Signed-off-by: Suraj Upadhyay --- Changes: v2: Removed the undefined variable. Reported by kernel-bot. drivers/staging/kpc2000/kpc2000/core.c | 2 +- 1

[PATCH v2] staging: rts5208: rtsx: Replace depracated MSI API

2020-07-18 Thread Suraj Upadhyay
Replace depracated pci_enable_msi with pci_alloc_irq_vectors. Signed-off-by: Suraj Upadhyay --- drivers/staging/rts5208/rtsx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index e28e162d004e..b39d3f8b54df

Re: [PATCH] staging: rts5208: rtsx: Replace depracated MSI API

2020-07-18 Thread Suraj Upadhyay
On Sat, Jul 18, 2020 at 06:48:56PM +0530, Suraj Upadhyay wrote: > Replace depracated pci_enable_msi with pci_alloc_irq_vectors. > > Signed-off-by: Suraj Upadhyay > --- > drivers/staging/rts5208/rtsx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

[PATCH v2] drm: core: Convert device logging to drm_* functions.

2020-07-18 Thread Suraj Upadhyay
1; expression list E2; @@ -dev_err_ratelimited(E1->dev, E2) +drm_err_ratelimited(E1, E2) @@expression E1; expression list E2; @@ -dev_dbg(E1->dev, E2) +drm_dbg(E1, E2) Signed-off-by: Suraj Upadhyay --- Changes: v2: Fixed error in coccinelle script and diff,

Re: [PATCH] drm: core: Convert device logging to drm_* functions.

2020-07-18 Thread Suraj Upadhyay
On Sat, Jul 18, 2020 at 08:25:31PM +0530, Suraj Upadhyay wrote: > Convert device logging with dev_* functions into drm_* functions. > > The patch has been generated with the coccinelle script below. > The script focuses on instances of dev_* functions where the drm device > con

[PATCH] drm: core: Convert device logging to drm_* functions.

2020-07-18 Thread Suraj Upadhyay
1; expression list E2; @@ -dev_err_ratelimited(E1->dev, E2) +drm_err_ratelimited(E1, E2) @@expression E1; expression list E2; @@ -dev_dbg(E1->dev, E2) +drm_dbg_(E1, E2) Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_edid.c | 6 ++ drivers/gpu/drm/drm_gem_cma_helper.

[PATCH] staging: kpc2000: Replace depracated MSI API.

2020-07-18 Thread Suraj Upadhyay
Replace depracated pci_enable_msi with pci_alloc_irq_vectors. Signed-off-by: Suraj Upadhyay --- drivers/staging/kpc2000/kpc2000/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc2000/core.c index

[PATCH] staging: media: ipu3: Replace depracated MSI API.

2020-07-18 Thread Suraj Upadhyay
Replace depracated psi_enable_msi with pci_alloc_irq_vectors. And as a result modify how the returned value is handled. Signed-off-by: Suraj Upadhyay --- drivers/staging/media/ipu3/ipu3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/ipu3/ipu3.c

[PATCH] staging: media: atomisp: Replace depracated MSI API.

2020-07-18 Thread Suraj Upadhyay
Replace depracated pci_enable_msi with pci_alloc_irq_vectors. And as a result modify how the returned value is handled. Signed-off-by: Suraj Upadhyay --- drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH] staging: rts5208: rtsx: Replace depracated MSI API

2020-07-18 Thread Suraj Upadhyay
Replace depracated pci_enable_msi with pci_alloc_irq_vectors. Signed-off-by: Suraj Upadhyay --- drivers/staging/rts5208/rtsx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index e28e162d004e..adc80e766412

[PATCH 2/2] scsi: megaraid: Remove remaining pci-dma-compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
@@ expression E1, E2; @@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Si

[PATCH 1/2] scsi: megaraid: Remove pci-dma-compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
@@ expression E1, E2; @@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Si

[PATCH] scsi: qla2xxx: Remove pci-dma-compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/qla2xxx/qla_os.c | 4 ++-- 1 file chan

[PATCH] scsi: mpt3sas: Remove pci-dma-compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 10 --

[PATCH] scsi: hpsa and dc395x: Remove pci_dma_compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/dc395x.c | 6 +++--- drivers/sc

[PATCH] scsi: aic7xxx: Remove pci-dma-compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
@@ - pci_dma_mapping_error(E1, E2) + dma_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upad

[PATCH] scsi: aacraid: Remove pci-dma-compat wrapper APIs.

2020-07-18 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/scsi/aacraid/aachba.c | 4 ++-- drivers/s

[RESEND] net: decnet: TODO Items

2020-07-18 Thread Suraj Upadhyay
isted works or not. Thanks, Suraj Upadhyay. signature.asc Description: PGP signature

net: decnet: TODO Items

2020-07-16 Thread Suraj Upadhyay

[PATCH] net: decnet: af_decnet: Simplify goto loop.

2020-07-16 Thread Suraj Upadhyay
Replace goto loop with while loop. Signed-off-by: Suraj Upadhyay --- net/decnet/af_decnet.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 0a46ea3bddd5..7d7ae2dd69b8 100644 --- a/net/decnet/af_decnet.c

[PATCH] staging: qlge/qlge_main.c: Replace depracated MSI API.

2020-07-16 Thread Suraj Upadhyay
Replace the depracated MSI API pci_enable_msi() with pci_alloc_irq_vectors(). Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c index

Re: [PATCH 6/6] staging: qlge: qlge_ethtool: Remove one byte memset.

2020-07-14 Thread Suraj Upadhyay
On Tue, Jul 14, 2020 at 12:22:05PM -0700, Joe Perches wrote: > On Wed, 2020-07-15 at 00:36 +0530, Suraj Upadhyay wrote: > > On Tue, Jul 14, 2020 at 11:57:23AM -0700, Joe Perches wrote: > > > On Mon, 2020-07-13 at 17:17 +0300, Dan Carpenter wrote: > > > > On Mon, Ju

[PATCH 4/4] ixgbe/ixgbe_ethtool.c: Remove unnecessary usages of memset.

2020-07-14 Thread Suraj Upadhyay
Replace memsets of 1 byte with simple assignment. Issue found with checkpatch.pl Signed-off-by: Suraj Upadhyay --- drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers

[PATCH 2/4] e1000e/ethtool.c : Remove unnecessary usages of memset.

2020-07-14 Thread Suraj Upadhyay
Replace memsets of 1 byte with simple assignments. Issue found with checkpatch.pl Signed-off-by: Suraj Upadhyay --- drivers/net/ethernet/intel/e1000e/ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net

[PATCH 3/4] igb/igb_ethtool.c : Remove unnecessary usages of memset.

2020-07-14 Thread Suraj Upadhyay
Replace memsets of 1 byte with simple assignment. Issue found with checkpatch.pl Signed-off-by: Suraj Upadhyay --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net

[PATCH 1/4] e1000/e1000_ethtool.c: Remove unnecessary usages of memset

2020-07-14 Thread Suraj Upadhyay
Replace memsets of 1 byte with simple assignments. Issue reported by checkpatch.pl. Signed-off-by: Suraj Upadhyay --- drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/e1000/e1000_ethtool.c b

Re: [PATCH 6/6] staging: qlge: qlge_ethtool: Remove one byte memset.

2020-07-14 Thread Suraj Upadhyay
On Tue, Jul 14, 2020 at 11:57:23AM -0700, Joe Perches wrote: > On Mon, 2020-07-13 at 17:17 +0300, Dan Carpenter wrote: > > On Mon, Jul 13, 2020 at 05:52:22PM +0530, Suraj Upadhyay wrote: > > > Use direct assignment instead of using memset with just one byte as an > > >

Re: [PATCH] decnet: dn_dev: Remove an unnecessary label.

2020-07-14 Thread Suraj Upadhyay
On Tue, Jul 14, 2020 at 04:16:15PM +0200, Julia Lawall wrote: > > > On Tue, 14 Jul 2020, Suraj Upadhyay wrote: > > > Remove the unnecessary label from dn_dev_ioctl() and make its error > > handling simpler to read. > > > > Signed-off-by: Suraj Upadhyay

[PATCH v2] decnet: dn_dev: Remove an unnecessary label.

2020-07-14 Thread Suraj Upadhyay
Remove the unnecessary label from dn_dev_ioctl() and make its error handling simpler to read. Signed-off-by: Suraj Upadhyay --- Changes: v2: Fixed indentation of break statement. On Julia's Advise. net/decnet/dn_dev.c | 8 +++- 1 file changed, 3 insertions(+), 5 dele

[PATCH] decnet: dn_dev: Remove an unnecessary label.

2020-07-14 Thread Suraj Upadhyay
Remove the unnecessary label from dn_dev_ioctl() and make its error handling simpler to read. Signed-off-by: Suraj Upadhyay --- net/decnet/dn_dev.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index 65abcf1b3210

[PATCH] USB: Remove pci-dma-compat wrapper APIs.

2020-07-14 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- drivers/usb/host/ehci-pci.c | 3 +-- 1 file chang

Re: [PATCH 4/6] staging: qlge: qlge_main: Simplify while statements.

2020-07-13 Thread Suraj Upadhyay
On Tue, Jul 14, 2020 at 02:41:37PM +0900, Benjamin Poirier wrote: > On 2020-07-13 17:50 +0530, Suraj Upadhyay wrote: > > Simplify while loops into more readable and simple for loops. > > > > Signed-off-by: Suraj Upadhyay > > --- > [...] > > @@ -182

Re: [PATCH 4/6] staging: qlge: qlge_main: Simplify while statements.

2020-07-13 Thread Suraj Upadhyay
On Mon, Jul 13, 2020 at 05:12:35PM +0300, Dan Carpenter wrote: > On Mon, Jul 13, 2020 at 05:50:14PM +0530, Suraj Upadhyay wrote: > > Simplify while loops into more readable and simple for loops. > > > > I don't think either is more clear that the other. Walter Harms ha

[PATCH v2] staging: comedi: s626: Remove pci-dma-compat wrapper APIs.

2020-07-13 Thread Suraj Upadhyay
- pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- Changes: v2: Converted the GFP_ATOMIC flag to GFP_KERNEL to suit for the co

Re: [PATCH 0/4] drm: core: Convert logging to drm_* functions.

2020-07-13 Thread Suraj Upadhyay
On Sun, Jul 12, 2020 at 12:07:45PM -0700, Joe Perches wrote: > On Mon, 2020-07-13 at 00:24 +0530, Suraj Upadhyay wrote: > > On Sat, Jul 11, 2020 at 11:16:33AM -0700, Joe Perches wrote: > [] > > > Perhaps change the __drm_printk macro to not > > > derefere

[PATCH 6/6] staging: qlge: qlge_ethtool: Remove one byte memset.

2020-07-13 Thread Suraj Upadhyay
Use direct assignment instead of using memset with just one byte as an argument. Issue found by checkpatch.pl. Signed-off-by: Suraj Upadhyay --- Hii Maintainers, Please correct me if I am wrong here. --- drivers/staging/qlge/qlge_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 5/6] staging: qlge: qlge_mpi: Simplify while statements.

2020-07-13 Thread Suraj Upadhyay
Simplify while loops into more readable and simple for loops. Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge_mpi.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/drivers/staging/qlge/qlge_mpi.c b/drivers/staging/qlge

[PATCH 4/6] staging: qlge: qlge_main: Simplify while statements.

2020-07-13 Thread Suraj Upadhyay
Simplify while loops into more readable and simple for loops. Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge_main.c | 49 ++-- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge

[PATCH 3/6] staging: qlge: qlge_dbg: Simplify while statements

2020-07-13 Thread Suraj Upadhyay
Simplify while loops into more readable and simple for loops. Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge_dbg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c index 32fbd30a6a2e

[PATCH 2/6] staging: qlge: qlge.h: Insert line after declaration.

2020-07-13 Thread Suraj Upadhyay
Issue found by checkpatch.pl Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/qlge/qlge.h b/drivers/staging/qlge/qlge.h index 48bc494028ce..483ce04789ed 100644 --- a/drivers/staging/qlge/qlge.h +++ b/drivers

[PATCH 1/6] staging: qlge: qlge.h: Function definition arguments should have names.

2020-07-13 Thread Suraj Upadhyay
Issue found with checkpatch.pl Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/qlge/qlge.h b/drivers/staging/qlge/qlge.h index 05e4f47442a3..48bc494028ce 100644 --- a/drivers/staging/qlge

[PATCH 0/6] staging: qlge: General cleanup and refactor.

2020-07-13 Thread Suraj Upadhyay
Hii, This patchest aims to remove several of the checkpatch.pl warnings and refactor some ugly while loops into for loops for better readability. Some of the issues are found with checkpatch and others were listed in qlge/TODO. Thanks, Suraj Upadhyay (6): staging: qlge: qlge.h

Re: [PATCH] staging: qlge: Remove pci-dma-compat wrapper APIs.

2020-07-12 Thread Suraj Upadhyay
On Mon, Jul 13, 2020 at 01:59:59PM +0900, Benjamin Poirier wrote: > On 2020-07-11 18:16 +0530, Suraj Upadhyay wrote: > > The legacy API wrappers in include/linux/pci-dma-compat.h > > should go away as it creates unnecessary midlayering > > for include/linux/dma-mapping.h

Re: [PATCH 0/4] drm: core: Convert logging to drm_* functions.

2020-07-12 Thread Suraj Upadhyay
On Sat, Jul 11, 2020 at 11:16:33AM -0700, Joe Perches wrote: > On Sat, 2020-07-11 at 20:41 +0530, Suraj Upadhyay wrote: > > On Fri, Jul 10, 2020 at 07:56:43PM +0200, Sam Ravnborg wrote: > > > Hi Suraj. > > > > > > On Tue, Jul 07, 2020 at 10:04:14PM +0530

Re: [PATCH 0/4] drm: core: Convert logging to drm_* functions.

2020-07-11 Thread Suraj Upadhyay
On Fri, Jul 10, 2020 at 07:56:43PM +0200, Sam Ravnborg wrote: > Hi Suraj. > > On Tue, Jul 07, 2020 at 10:04:14PM +0530, Suraj Upadhyay wrote: > > > > This patchset converts logging to drm_* functions in drm core. > > > > The following functions have been conv

[PATCH] staging: rtl8192e: rtl_core: Remove pci-dma-compat wrapper APIs.

2020-07-11 Thread Suraj Upadhyay
_mapping_error(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- This change is proposed by Chr

[PATCH] staging: rtl8192e: rtl8192E_dev: Remove pci-dma-compat wrapper APIs.

2020-07-11 Thread Suraj Upadhyay
- pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- This change is proposed by Christoph Hellwig in the post https://marc.i

[PATCH] staging: qlge: Remove pci-dma-compat wrapper APIs.

2020-07-11 Thread Suraj Upadhyay
- pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- This change is proposed by Christoph Hellwig in the post https://ma

[PATCH] staging: comedi: s626: Remove pci-dma-compat wrapper APIs.

2020-07-11 Thread Suraj Upadhyay
- pci_set_consistent_dma_mask(E1, E2) + dma_set_coherent_mask(&E1->dev, E2) @@ expression E1, E2; @@ - pci_set_dma_mask(E1, E2) + dma_set_mask(&E1->dev, E2) Signed-off-by: Suraj Upadhyay --- This change is proposed by Christoph Hellwig in the post https://marc

[Proposal] DRM: AMD: Convert logging to drm_* functions.

2020-07-08 Thread Suraj Upadhyay
this is a good idea and that the patches will be merged. The patches will essentially convert all the dev_info(), dev_warn(), dev_err() and dev_err_once() to drm_info(), drm_warn(), drm_err() and drm_err_once() respectively. Thank You, Suraj Upadhyay. [1] https://dri.freedesktop.org/docs/drm

[PATCH 3/4] drm: edid: Convert logging to drm_* functions.

2020-07-07 Thread Suraj Upadhyay
Change logging of warnings to drm_warn() form dev_warn(). Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_edid.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 31496b6cfc56..ad7a1f9817ed 100644 --- a

[PATCH 4/4] drm: fb-helper: Convert logging to drm_* functions.

2020-07-07 Thread Suraj Upadhyay
Change logging information from dev_info() to drm_info(). Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 5609e164805f..88146f7245c5

[PATCH 2/4] drm: mipi-dbi: Convert logging to drm_* functions.

2020-07-07 Thread Suraj Upadhyay
Convert logging of errors once from dev_err_once() to drm_err_once(). Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_mipi_dbi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b/drivers/gpu/drm/drm_mipi_dbi.c index 79532b9a324a

[PATCH 0/4] drm: core: Convert logging to drm_* functions.

2020-07-07 Thread Suraj Upadhyay
This patchset converts logging to drm_* functions in drm core. The following functions have been converted to their respective DRM alternatives : dev_info() --> drm_info() dev_err() --> drm_err() dev_warn() --> drm_warn() dev_err_once() --> drm_err_once(). Suraj

[PATCH 1/4] drm: mipi-dsi: Convert logging to drm_* functions.

2020-07-07 Thread Suraj Upadhyay
Convert logging errors from dev_err() to drm_err(). Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_mipi_dsi.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 07102d8da58f

[Proposal] drm: amd: Convert logging to drm_* functions with drm_device parameter

2020-07-06 Thread Suraj Upadhyay
macros are worth it or not. I would like to start working on this task if this needs the change. Thank you, Suraj Upadhyay. [1] https://dri.freedesktop.org/docs/drm/gpu/todo.html. [2] https://dri.freedesktop.org/docs/drm/gpu/todo.html#convert-logging-to-drm-functions-with-drm-device-paramater

[PATCH] drm: connector: Indent code using tabs.

2020-07-03 Thread Suraj Upadhyay
Replace space-indents with tab-indents. Issues found with checkpatch. Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_connector.c | 38 - 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm

[PATCH] drm : Insert blank lines after declarations.

2020-07-02 Thread Suraj Upadhyay
Resolve checkpatch issues for missing blank lines after declarations. Issues found in multiple files with checkpatch.pl. Signed-off-by: Suraj Upadhyay --- Contributor comments : Hii developers, I am a new contributor to linux kernel. This email is over 600 lines however the changes are very

[PATCH] staging: qlge: qlge_ethtool.c: Proper indentation.

2020-07-02 Thread Suraj Upadhyay
Remove extra indentations from if-statement. Signed-off-by: Suraj Upadhyay --- drivers/staging/qlge/qlge_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_ethtool.c b/drivers/staging/qlge/qlge_ethtool.c index 949abd53a7a9..16fcdefa9687