Skip to contentSkip to conversation

PCI: dw-rockchip: Remove redundant dev_err()

PATCH Applied Diederik de Haas 5 participants 5 messages Oct 21 – Nov 5

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: dw-rockchip: Remove redundant dev_err()

The devm_request_threaded_irq() function already automatically logs detailed error messages on failure since commit
55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()") So remove the now-redundant driver-specific dev_err() calls.

---
 drivers/pci/controller/dwc/pcie-dw-rockchip.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/pci/controller/dwc/pcie-dw-rockchip.c +2 -6
index 14976861f8ef..a4dbfc52c2f1 100644
@@ -718,10 +718,8 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
 	ret = devm_request_threaded_irq(dev, irq, NULL,
 					rockchip_pcie_rc_sys_irq_thread,
 					IRQF_ONESHOT, "pcie-sys-rc", rockchip);
-	if (ret) {
-		dev_err(dev, "failed to request PCIe sys IRQ\n");
+	if (ret)
 		return ret;
-	}
 
 	/* LTSSM enable control mode */
 	val = FIELD_PREP_WM16(PCIE_LTSSM_ENABLE_ENHANCE, 1);
@@ -764,10 +762,8 @@ static int rockchip_pcie_configure_ep(struct platform_device *pdev,
 	ret = devm_request_threaded_irq(dev, irq, NULL,
 					rockchip_pcie_ep_sys_irq_thread,
 					IRQF_ONESHOT, "pcie-sys-ep", rockchip);
-	if (ret) {
-		dev_err(dev, "failed to request PCIe sys IRQ\n");
+	if (ret)
 		return ret;
-	}
 
 	/*
 	 * LTSSM enable control mode, and automatically delay link training on
Signature · 1 line
2.55.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 6 lines

The devm_request_threaded_irq() function already automatically logs detailed error messages on failure since commit
55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()") So remove the now-redundant driver-specific dev_err() calls.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Diederik de Haas

Am Mittwoch, 21. Oktober 2026, 12:14:57 Mitteleuropäische Sommerzeit schrieb Diederik de Haas:

Quoted 6 lines

The devm_request_threaded_irq() function already automatically logs detailed error messages on failure since commit
55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()") So remove the now-redundant driver-specific dev_err() calls.

Reviewed-by on v1 1/1
#3 lore raw
In reply to Diederik de Haas
Quoted 5 lines · Diederik de Haas

The devm_request_threaded_irq() function already automatically logs detailed error messages on failure since commit
55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()") So remove the now-redundant driver-specific dev_err() calls.

Thanks.

Quoted 33 lines
---
  drivers/pci/controller/dwc/pcie-dw-rockchip.c | 8 ++------
  1 file changed, 2 insertions(+), 6 deletions(-)
drivers/pci/controller/dwc/pcie-dw-rockchip.c +2 -6
index 14976861f8ef..a4dbfc52c2f1 100644
@@ -718,10 +718,8 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
  	ret = devm_request_threaded_irq(dev, irq, NULL,
  					rockchip_pcie_rc_sys_irq_thread,
  					IRQF_ONESHOT, "pcie-sys-rc", rockchip);
-	if (ret) {
-		dev_err(dev, "failed to request PCIe sys IRQ\n");
+	if (ret)
  		return ret;
-	}
 
  	/* LTSSM enable control mode */
  	val = FIELD_PREP_WM16(PCIE_LTSSM_ENABLE_ENHANCE, 1);
@@ -764,10 +762,8 @@ static int rockchip_pcie_configure_ep(struct platform_device *pdev,
  	ret = devm_request_threaded_irq(dev, irq, NULL,
  					rockchip_pcie_ep_sys_irq_thread,
  					IRQF_ONESHOT, "pcie-sys-ep", rockchip);
-	if (ret) {
-		dev_err(dev, "failed to request PCIe sys IRQ\n");
+	if (ret)
  		return ret;
-	}
 
  	/*
  	 * LTSSM enable control mode, and automatically delay link training on
maintainer Applied
#4 lore raw
In reply to Diederik de Haas
Quoted 1 line · Diederik de Haas

PCI: dw-rockchip: Remove redundant dev_err()

Applied, thanks!

[1/1] PCI: dw-rockchip: Remove redundant dev_err()

      commit: 0da078b4bdc56bfd48bb52fa64809942f771bb12

Best regards,

Signature · 1 line
மணிவண்ணன் சதாசிவம்