Thread (19 messages) 19 messages, 4 authors, 2026-03-25

Re: [PATCH v3 3/7] pinctrl: pinctrl-generic: add __pinctrl_generic_pins_function_dt_node_to_map()

From: Frank Li <Frank.li@nxp.com>
Date: 2026-03-20 13:54:56
Also in: imx, linux-devicetree, linux-gpio, lkml

On Fri, Mar 20, 2026 at 02:27:21PM +0100, Linus Walleij wrote:
On Thu, Mar 19, 2026 at 12:04 AM Frank Li [off-list ref] wrote:
quoted
On Mon, Mar 16, 2026 at 10:37:28AM +0100, Linus Walleij wrote:
quoted
quoted
That said: in this case you're just adding a parameter, just add
the parameter and change all of the in-tree users to pass false
or whatever you need, these is just one (1) in-tree user anyway.
pinctrl_generic_pins_function_dt_node_to_map() directly feed to
.dt_node_to_map() callback, add parameter will impact too much.
Why do you say that. It already has many parameters, one more
or less doesn't matter. It's not like this call is performance-critical.
Just change the users.
In only user drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c,
	.dt_node_to_map = pinctrl_generic_pins_function_dt_node_to_map;

pinctrl_generic_pins_function_dt_node_to_map() need match .dt_node_to_map()'s
declear.

So it can't direct add two parameters in pinctrl_generic_pins_function_dt_node_to_map()
Need simple wrap function, which other in pinctrl-mpfs-mssio.c or in
pinconf.h.

If add two parameter in .dt_node_to_map(), need change all functions, which
.dt_node_to_map = xxx_to_map(). and OF core part.

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