LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] bus: Remove redundant error messages on IRQ request failure
@ 2026-07-10 11:09 Pan Chuang
  2026-07-10 11:09 ` [PATCH 1/2] bus: fsl-mc: Remove redundant dev_err() Pan Chuang
  0 siblings, 1 reply; 3+ messages in thread
From: Pan Chuang @ 2026-07-10 11:09 UTC (permalink / raw)
  To: Ioana Ciornei, Aaro Koskinen, Andreas Kemnade, Kevin Hilman,
	Roger Quadros, Tony Lindgren, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Kees Cook, Andrey Skvortsov, Pan Chuang,
	Sakari Ailus, open list:QORIQ DPAA2 FSL-MC BUS DRIVER,
	open list:QORIQ DPAA2 FSL-MC BUS DRIVER, open list:OMAP2+ SUPPORT,
	moderated list:ARM/Allwinner sunXi SoC support,
	open list:ARM/Allwinner sunXi SoC support

Commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()") added automatic error logging to
devm_request_threaded_irq() and devm_request_any_context_irq()
via the new devm_request_result() helper, which prints device
name, IRQ number, handler functions, and error code on failure.

Since devm_request_irq() is a static inline wrapper around
devm_request_threaded_irq(), it also benefits from this
automatic logging.

Remove the now-redundant dev_err() and dev_err_probe() calls
in bus drivers that follow these devm_request_*_irq()
functions, as the core now provides more detailed diagnostic
information on failure.

Pan Chuang (2):
  bus: fsl-mc: Remove redundant dev_err()
  bus: Remove redundant dev_err()/dev_err_probe()

 drivers/bus/fsl-mc/dprc-driver.c | 6 +-----
 drivers/bus/omap_l3_noc.c        | 7 +------
 drivers/bus/sunxi-rsb.c          | 3 +--
 3 files changed, 3 insertions(+), 13 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] bus: fsl-mc: Remove redundant dev_err()
  2026-07-10 11:09 [PATCH 0/2] bus: Remove redundant error messages on IRQ request failure Pan Chuang
@ 2026-07-10 11:09 ` Pan Chuang
  2026-07-13 12:48   ` Ioana Ciornei
  0 siblings, 1 reply; 3+ messages in thread
From: Pan Chuang @ 2026-07-10 11:09 UTC (permalink / raw)
  To: Ioana Ciornei, open list:QORIQ DPAA2 FSL-MC BUS DRIVER,
	open list:QORIQ DPAA2 FSL-MC BUS DRIVER
  Cc: Pan Chuang

Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.

Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
 drivers/bus/fsl-mc/dprc-driver.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/bus/fsl-mc/dprc-driver.c b/drivers/bus/fsl-mc/dprc-driver.c
index a85706826fa0..a81188cb06f2 100644
--- a/drivers/bus/fsl-mc/dprc-driver.c
+++ b/drivers/bus/fsl-mc/dprc-driver.c
@@ -521,12 +521,8 @@ static int register_dprc_irq_handler(struct fsl_mc_device *mc_dev)
 					  IRQF_NO_SUSPEND | IRQF_ONESHOT,
 					  dev_name(&mc_dev->dev),
 					  &mc_dev->dev);
-	if (error < 0) {
-		dev_err(&mc_dev->dev,
-			"devm_request_threaded_irq() failed: %d\n",
-			error);
+	if (error < 0)
 		return error;
-	}
 
 	return 0;
 }
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] bus: fsl-mc: Remove redundant dev_err()
  2026-07-10 11:09 ` [PATCH 1/2] bus: fsl-mc: Remove redundant dev_err() Pan Chuang
@ 2026-07-13 12:48   ` Ioana Ciornei
  0 siblings, 0 replies; 3+ messages in thread
From: Ioana Ciornei @ 2026-07-13 12:48 UTC (permalink / raw)
  To: Pan Chuang
  Cc: open list:QORIQ DPAA2 FSL-MC BUS DRIVER,
	open list:QORIQ DPAA2 FSL-MC BUS DRIVER

On Fri, Jul 10, 2026 at 07:09:26PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err() calls.
> 
> Signed-off-by: Pan Chuang <panchuang@vivo.com>

Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-13 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 11:09 [PATCH 0/2] bus: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-10 11:09 ` [PATCH 1/2] bus: fsl-mc: Remove redundant dev_err() Pan Chuang
2026-07-13 12:48   ` Ioana Ciornei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox