mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shawn Lin <shawn.lin@rock-chips.com>
To: "Diederik de Haas" <diederik@cknow-tech.com>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Heiko Stuebner" <heiko@sntech.de>
Cc: shawn.lin@rock-chips.com, Rob Herring <robh@kernel.org>,
	linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: dw-rockchip: Remove redundant dev_err()
Date: Mon, 26 Oct 2026 10:26:26 +0800	[thread overview]
Message-ID: <78564cbc-8faa-4392-ab66-2a1395fdca4e@rock-chips.com> (raw)
In-Reply-To: <20261021101533.609118-1-diederik@cknow-tech.com>

在 2026/10/21 星期三 18:14, Diederik de Haas 写道:
> The devm_request_threaded_irq() function already automatically logs
> detailed error messages on failure since commit
> 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()")
> So remove the now-redundant driver-specific dev_err() calls.
> 

Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>

Thanks.

> Signed-off-by: Diederik de Haas <diederik@cknow-tech.com>
> ---
>   drivers/pci/controller/dwc/pcie-dw-rockchip.c | 8 ++------
>   1 file changed, 2 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> index 14976861f8ef..a4dbfc52c2f1 100644
> --- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> +++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> @@ -718,10 +718,8 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
>   	ret = devm_request_threaded_irq(dev, irq, NULL,
>   					rockchip_pcie_rc_sys_irq_thread,
>   					IRQF_ONESHOT, "pcie-sys-rc", rockchip);
> -	if (ret) {
> -		dev_err(dev, "failed to request PCIe sys IRQ\n");
> +	if (ret)
>   		return ret;
> -	}
>   
>   	/* LTSSM enable control mode */
>   	val = FIELD_PREP_WM16(PCIE_LTSSM_ENABLE_ENHANCE, 1);
> @@ -764,10 +762,8 @@ static int rockchip_pcie_configure_ep(struct platform_device *pdev,
>   	ret = devm_request_threaded_irq(dev, irq, NULL,
>   					rockchip_pcie_ep_sys_irq_thread,
>   					IRQF_ONESHOT, "pcie-sys-ep", rockchip);
> -	if (ret) {
> -		dev_err(dev, "failed to request PCIe sys IRQ\n");
> +	if (ret)
>   		return ret;
> -	}
>   
>   	/*
>   	 * LTSSM enable control mode, and automatically delay link training on


  parent reply	other threads:[~2026-10-26  2:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-21 10:14 Diederik de Haas
2026-10-21 12:35 ` Heiko Stübner
2026-10-26  2:26 ` Shawn Lin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-18  7:44 Chen Ni
2024-09-18  8:21 ` Heiko Stuebner
2024-09-24 14:21 ` Manivannan Sadhasivam
2024-10-06  7:39 ` Markus Elfring

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=78564cbc-8faa-4392-ab66-2a1395fdca4e@rock-chips.com \
    --to=shawn.lin@rock-chips.com \
    --cc=bhelgaas@google.com \
    --cc=diederik@cknow-tech.com \
    --cc=heiko@sntech.de \
    --cc=kwilczynski@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=robh@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®