Re: [PATCH 2/3] ASoC: pxa2xx: push gpio usage into arch code

From: Mark Brown

Date: Mon Apr 27 2026 - 21:18:05 EST


On Mon, Apr 27, 2026 at 04:46:30PM +0200, Arnd Bergmann wrote:

> + 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)) {
> - ret = PTR_ERR(rst_gpio);
> - if (ret == -ENOENT)
> - reset_gpio = -1;
> - else if (ret)
> - return ret;
> - } else {
> - reset_gpio = desc_to_gpio(rst_gpio);
> - }
> - } else {
> - if (cpu_is_pxa27x())
> - reset_gpio = 113;
> - }
> + if (IS_ERR(rst_gpio))
> + rst_gpio = NULL;

Unlikely to actually fire but this now squashes -EPROBE_DEFER - the
earlier code propagated any error other than -ENOENT.

Attachment: signature.asc
Description: PGP signature