Skip to content

Remove surplus dev_err() when handing an error from platform_get_irq()

Krzysztof Wilczyński linux-amlogic linux-arm-kernel linux-omap linux-pci linux-rockchip linux-samsung-soc linux-tegra 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10PCI: dwc: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/dwc/pci-dra7xx.c drivers/pci/controller/dwc/pci-exynos.c drivers/pci/controller/dwc/pci-imx6.c +8 more+15 -401 reply
2/10PCI: mobiveil: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c drivers/pci/controller/mobiveil/pcie-mobiveil-host.c+3 -60 replies
3/10PCI: tegra: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pci-tegra.c+2 -60 replies
4/10PCI: altera: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pcie-altera.c+1 -31 reply
5/10PCI: host-generic: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pcie-tango.c+1 -30 replies
6/10PCI: v3-semi: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pci-v3-semi.c+2 -30 replies
7/10PCI: altera-msi: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pcie-altera-msi.c+0 -10 replies
8/10PCI: xgene-msi: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pci-xgene-msi.c+0 -20 replies
9/10PCI: rockchip: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pcie-rockchip-host.c+3 -90 replies
10/10PCI: xilinx-nwl: Remove dev_err() when handing an error from platform_get_irq()drivers/pci/controller/pcie-xilinx-nwl.c+2 -90 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchLey Foon TanJesper Nilsson
1/10A-b
2/10
3/10
4/10R-b
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] Remove surplus dev_err() when handing an error from platform_get_irq()

At the moment a lot of error handling code would print a duplicated error message should either the platform_get_irq() or platform_get_irq_byname() function fails to obtain an IRQ for a device.

There is no need to call the dev_err() function directly to print a custom message when handling an error from either of these functions as both are going to display an appropriate error message in case of a failure.

This series aims to remove surplus call to dev_err() when handing an error originating from either platform_get_irq() or platform_get_irq_byname() function as per suggestion from Coccinelle.

Related commits are commit 7723f4c5ecdb ("driver core: platform: Add an error message to platform_get_irq*()") and commit 98051ba2b28b ("coccinelle: Add script to check for platform_get_irq() excessive prints").

Krzysztof Wilczyński (10):
PCI: dwc: Remove dev_err() when handing an error from
platform_get_irq()
PCI: mobiveil: Remove dev_err() when handing an error from
platform_get_irq()
PCI: tegra: Remove dev_err() when handing an error from
platform_get_irq()
PCI: altera: Remove dev_err() when handing an error from
platform_get_irq()
PCI: host-generic: Remove dev_err() when handing an error from
platform_get_irq()
PCI: v3-semi: Remove dev_err() when handing an error from
platform_get_irq()
PCI: altera-msi: Remove dev_err() when handing an error from
platform_get_irq()
PCI: xgene-msi: Remove dev_err() when handing an error from
platform_get_irq()
PCI: rockchip: Remove dev_err() when handing an error from
platform_get_irq()
PCI: xilinx-nwl: Remove dev_err() when handing an error from
platform_get_irq()

 drivers/pci/controller/dwc/pci-dra7xx.c              |  8 ++------
 drivers/pci/controller/dwc/pci-exynos.c              |  9 +++------
 drivers/pci/controller/dwc/pci-imx6.c                |  4 +---
 drivers/pci/controller/dwc/pci-keystone.c            |  4 +---
 drivers/pci/controller/dwc/pci-meson.c               |  4 +---
 drivers/pci/controller/dwc/pcie-armada8k.c           |  4 +---
 drivers/pci/controller/dwc/pcie-artpec6.c            |  4 +---
 drivers/pci/controller/dwc/pcie-histb.c              |  4 +---
 drivers/pci/controller/dwc/pcie-kirin.c              |  5 +----
 drivers/pci/controller/dwc/pcie-spear13xx.c          |  5 ++---
 drivers/pci/controller/dwc/pcie-tegra194.c           |  4 +---
 .../pci/controller/mobiveil/pcie-layerscape-gen4.c   |  5 ++---
 drivers/pci/controller/mobiveil/pcie-mobiveil-host.c |  4 +---
 drivers/pci/controller/pci-tegra.c                   |  8 ++------
 drivers/pci/controller/pci-v3-semi.c                 |  5 ++---
 drivers/pci/controller/pci-xgene-msi.c               |  2 --
 drivers/pci/controller/pcie-altera-msi.c             |  1 -
 drivers/pci/controller/pcie-altera.c                 |  4 +---
 drivers/pci/controller/pcie-rockchip-host.c          | 12 +++---------
 drivers/pci/controller/pcie-tango.c                  |  4 +---
 drivers/pci/controller/pcie-xilinx-nwl.c             | 11 ++---------
 21 files changed, 29 insertions(+), 82 deletions(-)
Signature · 1 line
2.27.0