From: "Arnd Bergmann" <arnd@arndb.de>
To: "Andy Shevchenko" <andriy.shevchenko@intel.com>,
"Arnd Bergmann" <arnd@kernel.org>
Cc: "Daniel Mack" <daniel@zonque.org>,
"Haojian Zhuang" <haojian.zhuang@gmail.com>,
"Robert Jarzmik" <robert.jarzmik@free.fr>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Thierry Reding" <treding@nvidia.com>,
"Mark Brown" <broonie@kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH 2/3] ASoC: pxa2xx: push gpio usage into arch code
Date: Tue, 05 May 2026 21:59:33 +0200 [thread overview]
Message-ID: <ca83fbbf-e7d1-43d0-bb5b-0fe02644c91f@app.fastmail.com> (raw)
In-Reply-To: <ae-Hl4LZiZzCh8dy@ashevche-desk.local>
On Mon, Apr 27, 2026, at 17:58, Andy Shevchenko wrote:
> On Mon, Apr 27, 2026 at 04:46:30PM +0200, Arnd Bergmann wrote:
>
>> There are no remaining static platform_device users of pxa2xx ac97,
>> so the rest of that code path can go away as well.
>>
>> Since nothing in the driver uses the gpio number now, constrain the use
>> of the legacy gpio interface to the architecture specific code.
>
> ...
>
>> + if (cpu_is_pxa27x()) {
>> /* Assert reset using GPIOD_OUT_HIGH, because reset is GPIO_ACTIVE_LOW */
>> rst_gpio = devm_gpiod_get(&dev->dev, "reset", GPIOD_OUT_HIGH);
>> + if (IS_ERR(rst_gpio))
>> + rst_gpio = NULL;
>
> Have you seen my
> https://lore.kernel.org/r/20260415150412.365989-1-andriy.shevchenko@linux.intel.com
> ?
>
> Perhaps you can incorporate it into this mini-series, as it looks like that one
> hasn't been applied yet.
Done now. It was already similar to your version and after
addressing Mark's comment about error handling, I now squashed
it into this:
if (cpu_is_pxa27x()) {
/* Assert reset using GPIOD_OUT_HIGH, because reset is GPIO_ACTIVE_LOW */
rst_gpio = devm_gpiod_get_optional(&dev->dev, "reset",
GPIOD_OUT_HIGH);
if (IS_ERR(rst_gpio))
return dev_err_probe(&dev->dev, PTR_ERR(rst_gpio),
"reset gpio failed\n");
...
}
Arnd
next prev parent reply other threads:[~2026-05-05 20:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 14:46 [PATCH 1/3] ASoC: arm: pxa2xx: remove platform_data processing Arnd Bergmann
2026-04-27 14:46 ` [PATCH 2/3] ASoC: pxa2xx: push gpio usage into arch code Arnd Bergmann
2026-04-27 15:58 ` Andy Shevchenko
2026-05-05 19:59 ` Arnd Bergmann [this message]
2026-04-28 1:17 ` Mark Brown
2026-04-27 14:46 ` [PATCH 3/3] ASoC: pxa: integrate sound/arm/pxa2xx into sound/soc/pxa2xx Arnd Bergmann
2026-04-27 15:52 ` Andy Shevchenko
2026-04-27 15:58 ` Arnd Bergmann
2026-04-27 17:47 ` Andy Shevchenko
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=ca83fbbf-e7d1-43d0-bb5b-0fe02644c91f@app.fastmail.com \
--to=arnd@arndb.de \
--cc=andriy.shevchenko@intel.com \
--cc=arnd@kernel.org \
--cc=broonie@kernel.org \
--cc=daniel@zonque.org \
--cc=haojian.zhuang@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robert.jarzmik@free.fr \
--cc=tiwai@suse.com \
--cc=treding@nvidia.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