* [PATCH v2] staging: most: dim2: remove redundant dev_err() calls
@ 2026-10-18 11:00 Melih Emik
2026-10-18 11:52 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Melih Emik @ 2026-10-18 11:00 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm, gregkh
Cc: error27, linux-staging, linux-kernel
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() and
devm_request_irq() automatically log detailed failure diagnostics
including device name, IRQ number, handlers, and the error code via
dev_err_probe().
Consequently, driver-specific dev_err() calls immediately following
these requests produce duplicate error messages on failure and are
redundant. Remove the redundant dev_err() calls in dim2_probe().
Signed-off-by: Melih Emik <melihemik@noirlang.tr>
---
v2:
- Drop "Tested:" meta commentary from the commit message as suggested
by Dan Carpenter.
Test notes:
- Compiled with W=1 on x86_64 with zero warnings.
- Verified with lockdep and debug mutexes enabled
(CONFIG_PROVE_LOCKING=y, CONFIG_DEBUG_MUTEXES=y).
- Boot-tested full bzImage in QEMU with initcall_debug, confirming
successful driver registration (dim2_driver_init returned 0) and
zero lockdep/kernel warnings.
- Verified with scripts/checkpatch.pl (0 errors, 0 warnings).
drivers/staging/most/dim2/dim2.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c
index 0e2512d16632..d57e20d399c7 100644
--- a/drivers/staging/most/dim2/dim2.c
+++ b/drivers/staging/most/dim2/dim2.c
@@ -818,10 +818,8 @@ static int dim2_probe(struct platform_device *pdev)
ret = devm_request_threaded_irq(&pdev->dev, irq, dim2_ahb_isr,
dim2_task_irq, 0, "dim2_ahb0_int", dev);
- if (ret) {
- dev_err(&pdev->dev, "failed to request ahb0_int irq %d\n", irq);
+ if (ret)
goto err_shutdown_dim;
- }
irq = platform_get_irq(pdev, MLB_INT_IDX);
if (irq < 0) {
@@ -831,10 +829,8 @@ static int dim2_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, irq, dim2_mlb_isr, 0,
"dim2_mlb_int", dev);
- if (ret) {
- dev_err(&pdev->dev, "failed to request mlb_int irq %d\n", irq);
+ if (ret)
goto err_shutdown_dim;
- }
init_waitqueue_head(&dev->netinfo_waitq);
dev->deliver_netinfo = 0;
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] staging: most: dim2: remove redundant dev_err() calls
2026-10-18 11:00 [PATCH v2] staging: most: dim2: remove redundant dev_err() calls Melih Emik
@ 2026-10-18 11:52 ` Greg KH
2026-10-18 12:18 ` Melih Emik
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2026-10-18 11:52 UTC (permalink / raw)
To: Melih Emik
Cc: parthiban.veerasooran, christian.gromm, error27, linux-staging,
linux-kernel
On Sun, Oct 18, 2026 at 02:00:58PM +0300, Melih Emik wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_threaded_irq() and
> devm_request_irq() automatically log detailed failure diagnostics
> including device name, IRQ number, handlers, and the error code via
> dev_err_probe().
>
> Consequently, driver-specific dev_err() calls immediately following
> these requests produce duplicate error messages on failure and are
> redundant. Remove the redundant dev_err() calls in dim2_probe().
LLM-generated patches are not allowed in drivers/staging as per the
previous statements:
https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh
sorry,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] staging: most: dim2: remove redundant dev_err() calls
2026-10-18 11:52 ` Greg KH
@ 2026-10-18 12:18 ` Melih Emik
0 siblings, 0 replies; 3+ messages in thread
From: Melih Emik @ 2026-10-18 12:18 UTC (permalink / raw)
To: Greg KH
Cc: Dan Carpenter, parthiban.veerasooran, christian.gromm,
linux-staging, linux-kernel
Hi Greg, Dan,
Fair point, and I'm sorry about that.
I am a beginner trying to learn kernel development. I actually analyzed the
code, built it with W=1, and ran the QEMU boot tests myself, but because
English is not my native language, I used an LLM to help draft the commit
message and the reply. That made it sound like generic corporate AI fluff,
which was my mistake.
I understand the staging policy and respect your time. From now on, I will
write all my messages and commit logs in my own words.
Thanks for the feedback,
Melih
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-18 12:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-18 11:00 [PATCH v2] staging: most: dim2: remove redundant dev_err() calls Melih Emik
2026-10-18 11:52 ` Greg KH
2026-10-18 12:18 ` Melih Emik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®