mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Radu Rendec <radu@rendec.net>
To: Pan Chuang <panchuang@vivo.com>,
	Thomas Gleixner <tglx@kernel.org>,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH] irqchip: Remove redundant dev_err()/dev_err_probe()
Date: Tue, 14 Jul 2026 21:41:05 -0400	[thread overview]
Message-ID: <7ea1d95d7c4287ca002bf1d1d422d61b5df9d82a.camel@rendec.net> (raw)
In-Reply-To: <20260714131331.494902-1-panchuang@vivo.com>

On Tue, 2026-07-14 at 21:13 +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err() and dev_err_probe() calls.
> 
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
> ---
>  drivers/irqchip/irq-qcom-mpm.c      | 4 +---
>  drivers/irqchip/irq-renesas-rzt2h.c | 2 +-
>  drivers/irqchip/irq-renesas-rzv2h.c | 4 ++--
>  3 files changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/irqchip/irq-qcom-mpm.c b/drivers/irqchip/irq-qcom-mpm.c
> index 181320528a47..8c575d7ce8a1 100644
> --- a/drivers/irqchip/irq-qcom-mpm.c
> +++ b/drivers/irqchip/irq-qcom-mpm.c
> @@ -464,10 +464,8 @@ static int qcom_mpm_probe(struct platform_device *pdev, struct device_node *pare
>  
>  	ret = devm_request_irq(dev, irq, qcom_mpm_handler, IRQF_NO_SUSPEND,
>  			       "qcom_mpm", priv);
> -	if (ret) {
> -		dev_err(dev, "failed to request irq: %d\n", ret);
> +	if (ret)
>  		goto remove_domain;
> -	}
>  
>  	return 0;
>  
> diff --git a/drivers/irqchip/irq-renesas-rzt2h.c b/drivers/irqchip/irq-renesas-rzt2h.c
> index e06264add3cc..9086fc3a2043 100644
> --- a/drivers/irqchip/irq-renesas-rzt2h.c
> +++ b/drivers/irqchip/irq-renesas-rzt2h.c
> @@ -398,7 +398,7 @@ static int rzt2h_icu_request_irqs(struct platform_device *pdev, struct irq_domai
>  		ret = devm_request_irq(dev, virq, handler, 0, dev_name(dev),
>  				       data ?: (void *)(uintptr_t)offset);
>  		if (ret)
> -			return dev_err_probe(dev, ret, "Failed to request IRQ %u\n", offset);
> +			return ret;
>  	}
>  
>  	return 0;
> diff --git a/drivers/irqchip/irq-renesas-rzv2h.c b/drivers/irqchip/irq-renesas-rzv2h.c
> index 971ac83eee90..1a4703a353e9 100644
> --- a/drivers/irqchip/irq-renesas-rzv2h.c
> +++ b/drivers/irqchip/irq-renesas-rzv2h.c
> @@ -816,7 +816,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
>  		ret = devm_request_irq(dev, virq, rzv2h_icu_swint_irq, 0, dev_name(dev),
>  				       (void *)(uintptr_t)i);
>  		if (ret)
> -			return dev_err_probe(dev, ret, "Failed to request int-ca55-%u IRQ\n", i);
> +			return ret;
>  	}
>  
>  	/* Unmask and clear all IP/CA55 error interrupts */
> @@ -844,7 +844,7 @@ static int rzv2h_icu_setup_irqs(struct platform_device *pdev, struct irq_domain
>  
>  	ret = devm_request_irq(dev, virq, rzv2h_icu_error_irq, 0, dev_name(dev), rzv2h_icu_data);
>  	if (ret)
> -		return dev_err_probe(dev, ret, "Failed to request icu-error-ca55 IRQ\n");
> +		return ret;
>  
>  	return 0;
>  }

Reviewed-by: Radu Rendec <radu@rendec.net>

  reply	other threads:[~2026-07-15  1:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 13:13 Pan Chuang
2026-07-15  1:41 ` Radu Rendec [this message]
2026-07-15  6:42 ` [tip: irq/drivers] " tip-bot2 for Pan Chuang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ea1d95d7c4287ca002bf1d1d422d61b5df9d82a.camel@rendec.net \
    --to=radu@rendec.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=panchuang@vivo.com \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®