* [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure
@ 2026-07-15 13:50 Pan Chuang
2026-07-15 13:50 ` [PATCH 1/3] counter: stm32-timer-cnt: Remove redundant dev_err() Pan Chuang
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Pan Chuang @ 2026-07-15 13:50 UTC (permalink / raw)
To: Fabrice Gasnier, William Breathitt Gray, Maxime Coquelin,
Alexandre Torgue, Vignesh Raghavendra, Julien Panis,
David Lechner, open list:COUNTER SUBSYSTEM,
moderated list:ARM/STM32 ARCHITECTURE,
moderated list:ARM/STM32 ARCHITECTURE, open list,
open list:TI ENHANCED CAPTURE (eCAP) DRIVER
Cc: Pan Chuang
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 counter drivers that follow these devm_request_*_irq()
functions, as the core now provides more detailed diagnostic
information on failure.
Pan Chuang (3):
counter: stm32-timer-cnt: Remove redundant dev_err()
counter: ti-ecap-capture: Remove redundant dev_err_probe()
counter: ti-eqep: Remove redundant dev_err_probe()
drivers/counter/stm32-timer-cnt.c | 10 ++--------
drivers/counter/ti-ecap-capture.c | 2 +-
drivers/counter/ti-eqep.c | 2 +-
3 files changed, 4 insertions(+), 10 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] counter: stm32-timer-cnt: Remove redundant dev_err()
2026-07-15 13:50 [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Pan Chuang
@ 2026-07-15 13:50 ` Pan Chuang
2026-07-15 13:50 ` [PATCH 2/3] counter: ti-ecap-capture: Remove redundant dev_err_probe() Pan Chuang
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Pan Chuang @ 2026-07-15 13:50 UTC (permalink / raw)
To: Fabrice Gasnier, William Breathitt Gray, Maxime Coquelin,
Alexandre Torgue, open list:COUNTER SUBSYSTEM,
moderated list:ARM/STM32 ARCHITECTURE,
moderated list:ARM/STM32 ARCHITECTURE, open list
Cc: Pan Chuang, Joshua Crofts
devm_request_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: Joshua Crofts <joshua.crofts1@gmail.com>
---
drivers/counter/stm32-timer-cnt.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c
index a3d8f7a5874e..9eee281350d0 100644
--- a/drivers/counter/stm32-timer-cnt.c
+++ b/drivers/counter/stm32-timer-cnt.c
@@ -759,11 +759,8 @@ static int stm32_timer_cnt_probe(struct platform_device *pdev)
/* All events reported through the global interrupt */
ret = devm_request_irq(&pdev->dev, ddata->irq[0], stm32_timer_cnt_isr,
0, dev_name(dev), counter);
- if (ret) {
- dev_err(dev, "Failed to request irq %d (err %d)\n",
- ddata->irq[0], ret);
+ if (ret)
return ret;
- }
} else {
for (i = 0; i < priv->nr_irqs; i++) {
/*
@@ -775,11 +772,8 @@ static int stm32_timer_cnt_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, ddata->irq[i], stm32_timer_cnt_isr,
0, dev_name(dev), counter);
- if (ret) {
- dev_err(dev, "Failed to request irq %d (err %d)\n",
- ddata->irq[i], ret);
+ if (ret)
return ret;
- }
}
}
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] counter: ti-ecap-capture: Remove redundant dev_err_probe()
2026-07-15 13:50 [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-15 13:50 ` [PATCH 1/3] counter: stm32-timer-cnt: Remove redundant dev_err() Pan Chuang
@ 2026-07-15 13:50 ` Pan Chuang
2026-07-15 13:50 ` [PATCH 3/3] counter: ti-eqep: " Pan Chuang
2026-07-15 14:00 ` [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Joshua Crofts
3 siblings, 0 replies; 5+ messages in thread
From: Pan Chuang @ 2026-07-15 13:50 UTC (permalink / raw)
To: Vignesh Raghavendra, Julien Panis, William Breathitt Gray,
open list:TI ENHANCED CAPTURE (eCAP) DRIVER,
open list:TI ENHANCED CAPTURE (eCAP) DRIVER, open list
Cc: Pan Chuang, Joshua Crofts
devm_request_irq() automatically logs detailed error messages on
failure. Remove the now-redundant driver-specific dev_err_probe() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
---
drivers/counter/ti-ecap-capture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/counter/ti-ecap-capture.c b/drivers/counter/ti-ecap-capture.c
index f69b6920463f..d77a256f0ed3 100644
--- a/drivers/counter/ti-ecap-capture.c
+++ b/drivers/counter/ti-ecap-capture.c
@@ -513,7 +513,7 @@ static int ecap_cnt_probe(struct platform_device *pdev)
ret = devm_request_irq(dev, ret, ecap_cnt_isr, 0, pdev->name, counter_dev);
if (ret)
- return dev_err_probe(dev, ret, "failed to request irq\n");
+ return ret;
platform_set_drvdata(pdev, counter_dev);
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] counter: ti-eqep: Remove redundant dev_err_probe()
2026-07-15 13:50 [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-15 13:50 ` [PATCH 1/3] counter: stm32-timer-cnt: Remove redundant dev_err() Pan Chuang
2026-07-15 13:50 ` [PATCH 2/3] counter: ti-ecap-capture: Remove redundant dev_err_probe() Pan Chuang
@ 2026-07-15 13:50 ` Pan Chuang
2026-07-15 14:00 ` [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Joshua Crofts
3 siblings, 0 replies; 5+ messages in thread
From: Pan Chuang @ 2026-07-15 13:50 UTC (permalink / raw)
To: David Lechner, William Breathitt Gray,
open list:TI ENHANCED QUADRATURE ENCODER PULSE (eQEP) DRIVER,
open list
Cc: Pan Chuang, Joshua Crofts
devm_request_threaded_irq() automatically logs detailed error messages
on failure. Remove the now-redundant driver-specific dev_err_probe()
call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
---
drivers/counter/ti-eqep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/counter/ti-eqep.c b/drivers/counter/ti-eqep.c
index d9302ec21163..0dda3f2b14c7 100644
--- a/drivers/counter/ti-eqep.c
+++ b/drivers/counter/ti-eqep.c
@@ -526,7 +526,7 @@ static int ti_eqep_probe(struct platform_device *pdev)
err = devm_request_threaded_irq(dev, irq, NULL, ti_eqep_irq_handler,
IRQF_ONESHOT, dev_name(dev), counter);
if (err < 0)
- return dev_err_probe(dev, err, "failed to request IRQ\n");
+ return err;
counter->name = dev_name(dev);
counter->parent = dev;
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure
2026-07-15 13:50 [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Pan Chuang
` (2 preceding siblings ...)
2026-07-15 13:50 ` [PATCH 3/3] counter: ti-eqep: " Pan Chuang
@ 2026-07-15 14:00 ` Joshua Crofts
3 siblings, 0 replies; 5+ messages in thread
From: Joshua Crofts @ 2026-07-15 14:00 UTC (permalink / raw)
To: Pan Chuang
Cc: Fabrice Gasnier, William Breathitt Gray, Maxime Coquelin,
Alexandre Torgue, Vignesh Raghavendra, Julien Panis,
David Lechner, open list:COUNTER SUBSYSTEM,
moderated list:ARM/STM32 ARCHITECTURE,
moderated list:ARM/STM32 ARCHITECTURE, open list,
open list:TI ENHANCED CAPTURE (eCAP) DRIVER
On Wed, 15 Jul 2026 21:50:27 +0800
Pan Chuang <panchuang@vivo.com> wrote:
> 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 counter drivers that follow these devm_request_*_irq()
> functions, as the core now provides more detailed diagnostic
> information on failure.
>
> Pan Chuang (3):
> counter: stm32-timer-cnt: Remove redundant dev_err()
> counter: ti-ecap-capture: Remove redundant dev_err_probe()
> counter: ti-eqep: Remove redundant dev_err_probe()
>
> drivers/counter/stm32-timer-cnt.c | 10 ++--------
> drivers/counter/ti-ecap-capture.c | 2 +-
> drivers/counter/ti-eqep.c | 2 +-
> 3 files changed, 4 insertions(+), 10 deletions(-)
>
LGTM.
--
Kind regards
CJD
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-07-15 14:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 13:50 [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-15 13:50 ` [PATCH 1/3] counter: stm32-timer-cnt: Remove redundant dev_err() Pan Chuang
2026-07-15 13:50 ` [PATCH 2/3] counter: ti-ecap-capture: Remove redundant dev_err_probe() Pan Chuang
2026-07-15 13:50 ` [PATCH 3/3] counter: ti-eqep: " Pan Chuang
2026-07-15 14:00 ` [PATCH 0/3] counter: Remove redundant error messages on IRQ request failure Joshua Crofts
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.