Thread (32 messages) 32 messages, 6 authors, 2025-07-15

Re: [PATCH 4/9] gpio: regmap: add the .get_direction() callback

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-07-11 17:45:50
Also in: linux-devicetree, linux-gpio, lkml

On Fri, Jul 11, 2025 at 07:43:13PM +0200, Linus Walleij wrote:
On Wed, Jul 9, 2025 at 5:09 PM Andrew Lunn [off-list ref] wrote:
quoted
This is not my area, so i will deffer to the GPIO
Maintainers. However, it is not clear to me what get_direction()
should return.
This callback should return the current direction as set up
in the hardware.

A major usecase is that this is called when the gpiochip is
registered to read out all the current directions of the GPIO
lines, so the kernel has a clear idea of the state of the
hardware.

Calling this should ideally result in a read of the status from
a hardware register.
O.K, so completely different to what is proposed in this patch.

Maybe you can suggest a better name.

	Andrew

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