Thread (41 messages) 41 messages, 8 authors, 2022-07-19

Re: [PATCH 1/4] gpiolib: add support for bias pull disable

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2022-07-14 15:08:34
Also in: linux-acpi, linux-gpio

On Thu, Jul 14, 2022 at 03:02:08PM +0200, Nuno Sá wrote:
On Thu, 2022-07-14 at 20:00 +0800, Kent Gibson wrote:
quoted
On Thu, Jul 14, 2022 at 10:47:27AM +0200, Nuno Sá wrote:
...
quoted
If that solves your immediate problem then you need to decide what
problem your patch is trying to address.
So my patch is trying to solve exactly this case because (IMO), it does
not make sense for consumers drivers to have to do the above code.
Moreover, they would need some custom firmware property (eg:
devicetree) for the cases where we want to disable BIAS since we cannot
just assume we want to do it.
Why? This is the main question. Why do you need that _in kernel_ API.
Well, maybe we can just assume FLAG_BIAS_DISABLE in gpiolib (when
trying to get the gpiod) if no PULL is specified. However, I do have
some concerns with it (see my conversation with Andy in the cover).
It's AS IS if you trust firmware.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help