* [PATCH 0/2] accel: Remove redundant error messages on IRQ request failure
@ 2026-07-10 10:59 Pan Chuang
2026-07-10 10:59 ` [PATCH 1/2] accel: ethosu: Remove redundant dev_err() Pan Chuang
2026-07-10 10:59 ` [PATCH 2/2] accel: rocket: " Pan Chuang
0 siblings, 2 replies; 4+ messages in thread
From: Pan Chuang @ 2026-07-10 10:59 UTC (permalink / raw)
To: Rob Herring (Arm), Tomeu Vizoso, Oded Gabbay,
open list:ARM ETHOS-U NPU DRIVER, open list
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 accel drivers that follow these devm_request_*_irq()
functions, as the core now provides more detailed diagnostic
information on failure.
Pan Chuang (2):
accel: ethosu: Remove redundant dev_err()
accel: rocket: Remove redundant dev_err()
drivers/accel/ethosu/ethosu_job.c | 4 +---
drivers/accel/rocket/rocket_job.c | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] accel: ethosu: Remove redundant dev_err()
2026-07-10 10:59 [PATCH 0/2] accel: Remove redundant error messages on IRQ request failure Pan Chuang
@ 2026-07-10 10:59 ` Pan Chuang
2026-08-24 21:37 ` Rob Herring
2026-07-10 10:59 ` [PATCH 2/2] accel: rocket: " Pan Chuang
1 sibling, 1 reply; 4+ messages in thread
From: Pan Chuang @ 2026-07-10 10:59 UTC (permalink / raw)
To: Rob Herring (Arm), Tomeu Vizoso, Oded Gabbay,
open list:ARM ETHOS-U NPU DRIVER, open list
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/accel/ethosu/ethosu_job.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/accel/ethosu/ethosu_job.c b/drivers/accel/ethosu/ethosu_job.c
index 74f3493fb11a..cdc0d61ee53d 100644
--- a/drivers/accel/ethosu/ethosu_job.c
+++ b/drivers/accel/ethosu/ethosu_job.c
@@ -338,10 +338,8 @@ int ethosu_job_init(struct ethosu_device *edev)
ethosu_job_irq_handler_thread,
IRQF_SHARED, KBUILD_MODNAME,
edev);
- if (ret) {
- dev_err(dev, "failed to request irq\n");
+ if (ret)
return ret;
- }
edev->fence_context = dma_fence_context_alloc(1);
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/2] accel: ethosu: Remove redundant dev_err()
2026-07-10 10:59 ` [PATCH 1/2] accel: ethosu: Remove redundant dev_err() Pan Chuang
@ 2026-08-24 21:37 ` Rob Herring
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2026-08-24 21:37 UTC (permalink / raw)
To: Pan Chuang
Cc: Tomeu Vizoso, Oded Gabbay, open list:ARM ETHOS-U NPU DRIVER,
open list
On Fri, Jul 10, 2026 at 06:59:35PM +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>
> ---
> drivers/accel/ethosu/ethosu_job.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] accel: rocket: Remove redundant dev_err()
2026-07-10 10:59 [PATCH 0/2] accel: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-10 10:59 ` [PATCH 1/2] accel: ethosu: Remove redundant dev_err() Pan Chuang
@ 2026-07-10 10:59 ` Pan Chuang
1 sibling, 0 replies; 4+ messages in thread
From: Pan Chuang @ 2026-07-10 10:59 UTC (permalink / raw)
To: Tomeu Vizoso, Oded Gabbay,
open list:DRM ACCEL DRIVER FOR ROCKCHIP NPU, open list
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/accel/rocket/rocket_job.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/accel/rocket/rocket_job.c b/drivers/accel/rocket/rocket_job.c
index 2f1861f960cc..8619981782ed 100644
--- a/drivers/accel/rocket/rocket_job.c
+++ b/drivers/accel/rocket/rocket_job.c
@@ -457,10 +457,8 @@ int rocket_job_init(struct rocket_core *core)
rocket_job_irq_handler_thread,
IRQF_SHARED, dev_name(core->dev),
core);
- if (ret) {
- dev_err(core->dev, "failed to request job irq");
+ if (ret)
return ret;
- }
core->reset.wq = alloc_ordered_workqueue("rocket-reset-%d", 0, core->index);
if (!core->reset.wq)
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-24 21:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 10:59 [PATCH 0/2] accel: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-10 10:59 ` [PATCH 1/2] accel: ethosu: Remove redundant dev_err() Pan Chuang
2026-08-24 21:37 ` Rob Herring
2026-07-10 10:59 ` [PATCH 2/2] accel: rocket: " Pan Chuang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox