linux-sound.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Sreeraj S Kurup" <sreekuttan2156239@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH] ALSA: atmel: ac97c: fix reset GPIO error handling
Date: Fri, 27 Nov 2026 09:58:56 +0000	[thread overview]
Message-ID: <sashiko-outbox-237035@kernel.org> (raw)
In-Reply-To: <20261127095029.3280-1-sreekuttan2156239@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ALSA: atmel: ac97c: missing Fixes trailer for reset GPIO error
  handling fix
--

commit 656d7dbe132930b3438ef77f14be3d7acdf72afa
Author: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

> ALSA: atmel: ac97c: fix reset GPIO error handling
>
> The driver currently ignores errors returned by
> devm_gpiod_get_index() and continues probing. This can cause problems
> when the GPIO provider is not ready and the function returns
> -EPROBE_DEFER.
>
> Use devm_gpiod_get_index_optional() to handle the reset GPIO as
> optional. If the GPIO is not available, the driver can continue using
> the internal reset mechanism. If GPIO acquisition fails for another
> reason, return the error using dev_err_probe().
>
> Also, check the GPIO descriptor for NULL in atmel_ac97c_reset(),
> because the optional GPIO API returns NULL when no GPIO is assigned.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

[Severity: Low]
This fixes the devm_gpiod_get_index() call and ignored error return
introduced during the gpiod conversion.  Should the commit message include:

  Fixes: 5f10e84934e4 ("ALSA: atmel: convert AC97c driver to GPIO descriptor API")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127095029.3280-1-sreekuttan2156239@gmail.com?part=1

  reply	other threads:[~2026-11-27  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  9:50 [PATCH] ALSA: atmel: ac97c: fix reset GPIO error handling Sreeraj S Kurup
2026-11-27  9:58 ` sashiko-bot [this message]
2026-11-27 10:06 ` [PATCH v2] " Sreeraj S Kurup

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=sashiko-outbox-237035@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sreekuttan2156239@gmail.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;
as well as URLs for NNTP newsgroup(s).