Linux Input/HID development
 help / color / mirror / Atom feed
From: Basavaraj Natikar <bnatikar@amd.com>
To: Pan Chuang <panchuang@vivo.com>,
	Basavaraj Natikar <basavaraj.natikar@amd.com>,
	Jiri Kosina <jikos@kernel.org>,
	Benjamin Tissoires <bentiss@kernel.org>,
	"open list:AMD SENSOR FUSION HUB DRIVER"
	<linux-input@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/4] HID: amd_sfh: Remove redundant dev_err()
Date: Fri, 17 Jul 2026 15:26:15 +0530	[thread overview]
Message-ID: <4b0e71b3-7c9a-48ce-b7bb-6755d7647f65@amd.com> (raw)
In-Reply-To: <20260716075203.593012-2-panchuang@vivo.com>


On 7/16/2026 1:21 PM, Pan Chuang wrote:
> [You don't often get email from panchuang@vivo.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> 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() calls.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
> ---
>   drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
> index 4b81cebdc335..a2acd3ca20e2 100644
> --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
> +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
> @@ -128,11 +128,8 @@ int amd_sfh_irq_init_v2(struct amd_mp2_dev *privdata)
>
>          rc = devm_request_irq(&privdata->pdev->dev, privdata->pdev->irq,
>                                amd_sfh_irq_handler, 0, DRIVER_NAME, privdata);
> -       if (rc) {
> -               dev_err(&privdata->pdev->dev, "failed to request irq %d err=%d\n",
> -                       privdata->pdev->irq, rc);
> +       if (rc)
>                  return rc;
> -       }

Please change the function to return the call directly then

return devm_request_irq(&privdata->pdev->dev, privdata->pdev->irq,
			amd_sfh_irq_handler, 0, DRIVER_NAME, privdata);

With that change:

Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>

Thanks,
--
Basavaraj



  reply	other threads:[~2026-07-17  9:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-16  7:51 [PATCH v2 0/4] HID: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-16  7:51 ` [PATCH v2 1/4] HID: amd_sfh: Remove redundant dev_err() Pan Chuang
2026-07-17  9:56   ` Basavaraj Natikar [this message]
2026-07-16  7:51 ` [PATCH v2 2/4] HID: hid-goodix: " Pan Chuang
2026-07-16  7:51 ` [PATCH v2 3/4] HID: intel-ish-hid: ipc: " Pan Chuang
2026-07-16  8:17   ` sashiko-bot
2026-07-16 14:40   ` srinivas pandruvada
2026-07-16  7:51 ` [PATCH v2 4/4] HID: Intel-thc-hid: " Pan Chuang
2026-07-16  8:33   ` sashiko-bot
2026-07-17  3:41   ` Xu, Even

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=4b0e71b3-7c9a-48ce-b7bb-6755d7647f65@amd.com \
    --to=bnatikar@amd.com \
    --cc=basavaraj.natikar@amd.com \
    --cc=bentiss@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=panchuang@vivo.com \
    /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