[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbvnL0z1x0An2Bhv1TdQxaz4vtBpVBDXUe+LCK68FM=dA@mail.gmail.com>
Date: Wed, 16 Apr 2025 10:44:18 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, Bartosz Golaszewski <brgl@...ev.pl>
Subject: Re: [PATCH v1 4/7] gpiolib: Call validate_desc() when VALIDATE_DESC()
can't be used
On Tue, Apr 15, 2025 at 1:11 PM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
> Call validate_desc() directly when VALIDATE_DESC() can't be used.
> It will print additional information useful for debugging.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
> offset = gpio_chip_hwgpio(desc);
> if (gc->to_irq) {
> - int retirq = gc->to_irq(gc, offset);
> + ret = gc->to_irq(gc, offset);
> + if (ret)
> + return ret;
>
> /* Zero means NO_IRQ */
> - if (!retirq)
> - return -ENXIO;
> -
> - return retirq;
> + return -ENXIO;
Totally unrelated change - but I'm fine with that :D
Yours,
Linus Walleij
Powered by blists - more mailing lists