Thread (39 messages) 39 messages, 7 authors, 2025-03-18

Re: [PATCH v4 04/10] gpio: regmap: Allow to provide request and free callbacks

From: Andy Shevchenko <hidden>
Date: 2025-02-14 16:07:43
Also in: linux-devicetree, linux-gpio, linux-pwm, lkml

On Fri, Feb 14, 2025 at 12:49:54PM +0100, Mathieu Dubois-Briand wrote:
Allows to populate the gpio_regmap_config structure with request() and
free() callbacks to set on the final gpio_chip structure.
Yeah, I understand the intention, but I have mixed feelings about this.
OOH it helps with the cases like yours, OTO it sounds like a hack instead
of proper implementation of the pin muxing. Yes, I know there are some
drivers in the kernel do similar things, but it most likely historically
and not always having the same HW capabilities as this chip.

-- 
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