Re: [PATCH RFC 5/6] ARM: pxa: Convert Spitz hsync to GPIO descriptors

From: Andy Shevchenko
Date: Mon Sep 25 2023 - 03:37:07 EST


On Sun, Sep 24, 2023 at 06:42:58PM +0200, Duje Mihanović wrote:
> Sharp's Spitz still uses the legacy GPIO interface in its wait_for_hsync

We refer to the functions as wait_for_hsync().

> function.
>
> Convert it to use the GPIO descriptor interface.

...

> + hsync = gpiod_get(NULL, "hsync", GPIOD_IN);
> + if (IS_ERR(hsync))
> + pr_err("Failed to get hsync GPIO: %ld\n", PTR_ERR(hsync));

So, I didn't get, is this GPIO crucial for functioning or optional?
If the former, we need to stop here or bail out (if possible), do we?
Or should use _optional() API?

--
With Best Regards,
Andy Shevchenko