All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] pinctrl: fix signature of extract pinctrl_generic_to_map() in nop case
@ 2026-05-14 20:01 Conor Dooley
  2026-05-14 21:08 ` Frank Li
  0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2026-05-14 20:01 UTC (permalink / raw)
  To: linusw; +Cc: conor, Conor Dooley, Frank Li, linux-gpio, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

The signature of extract pinctrl_generic_to_map() is incorrect when
CONFIG_GENERIC_PINCTRL and CONFIG_OF are not enabled. Probably a
hangover from an earlier revision of the patchset that was not updated
that went undetected given it depends on OF being disabled.

Fixes: aaaf31be04260 ("pinctrl: extract pinctrl_generic_to_map() from pinctrl_generic_pins_function_dt_node_to_map()")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
CC: Linus Walleij <linusw@kernel.org>
CC: Frank Li <Frank.Li@nxp.com>
CC: Conor Dooley <conor.dooley@microchip.com>
CC: linux-gpio@vger.kernel.org
CC: linux-kernel@vger.kernel.org
---
 drivers/pinctrl/pinconf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h
index fa8fb0d290d1d..9711d16c38b62 100644
--- a/drivers/pinctrl/pinconf.h
+++ b/drivers/pinctrl/pinconf.h
@@ -195,7 +195,7 @@ pinctrl_generic_to_map(struct pinctrl_dev *pctldev, struct device_node *parent,
 		       unsigned int *num_maps, unsigned int *num_reserved_maps,
 		       const char **group_name, unsigned int ngroups,
 		       const char **functions, unsigned int *pins,
-		       void *function_data)
+		       unsigned int npins)
 {
 	return -ENOTSUPP;
 }
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] pinctrl: fix signature of extract pinctrl_generic_to_map() in nop case
  2026-05-14 20:01 [PATCH v1] pinctrl: fix signature of extract pinctrl_generic_to_map() in nop case Conor Dooley
@ 2026-05-14 21:08 ` Frank Li
  2026-05-14 21:17   ` Conor Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Li @ 2026-05-14 21:08 UTC (permalink / raw)
  To: Conor Dooley; +Cc: linusw, Conor Dooley, linux-gpio, linux-kernel

On Thu, May 14, 2026 at 09:01:27PM +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> The signature of extract pinctrl_generic_to_map() is incorrect when
> CONFIG_GENERIC_PINCTRL and CONFIG_OF are not enabled. Probably a
> hangover from an earlier revision of the patchset that was not updated
> that went undetected given it depends on OF being disabled.

Thanks, I already posted fix patch at

https://lore.kernel.org/imx/20260512144806.22447-1-Frank.Li@nxp.com/T/#u

Frank

>
> Fixes: aaaf31be04260 ("pinctrl: extract pinctrl_generic_to_map() from pinctrl_generic_pins_function_dt_node_to_map()")
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> CC: Linus Walleij <linusw@kernel.org>
> CC: Frank Li <Frank.Li@nxp.com>
> CC: Conor Dooley <conor.dooley@microchip.com>
> CC: linux-gpio@vger.kernel.org
> CC: linux-kernel@vger.kernel.org
> ---
>  drivers/pinctrl/pinconf.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h
> index fa8fb0d290d1d..9711d16c38b62 100644
> --- a/drivers/pinctrl/pinconf.h
> +++ b/drivers/pinctrl/pinconf.h
> @@ -195,7 +195,7 @@ pinctrl_generic_to_map(struct pinctrl_dev *pctldev, struct device_node *parent,
>  		       unsigned int *num_maps, unsigned int *num_reserved_maps,
>  		       const char **group_name, unsigned int ngroups,
>  		       const char **functions, unsigned int *pins,
> -		       void *function_data)
> +		       unsigned int npins)
>  {
>  	return -ENOTSUPP;
>  }
> --
> 2.53.0
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] pinctrl: fix signature of extract pinctrl_generic_to_map() in nop case
  2026-05-14 21:08 ` Frank Li
@ 2026-05-14 21:17   ` Conor Dooley
  0 siblings, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2026-05-14 21:17 UTC (permalink / raw)
  To: Frank Li; +Cc: linusw, Conor Dooley, linux-gpio, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]

On Thu, May 14, 2026 at 05:08:16PM -0400, Frank Li wrote:
> On Thu, May 14, 2026 at 09:01:27PM +0100, Conor Dooley wrote:
> > From: Conor Dooley <conor.dooley@microchip.com>
> >
> > The signature of extract pinctrl_generic_to_map() is incorrect when
> > CONFIG_GENERIC_PINCTRL and CONFIG_OF are not enabled. Probably a
> > hangover from an earlier revision of the patchset that was not updated
> > that went undetected given it depends on OF being disabled.
> 
> Thanks, I already posted fix patch at
> 
> https://lore.kernel.org/imx/20260512144806.22447-1-Frank.Li@nxp.com/T/#u
> 

Oh, I didn't realise that was a fix for this because the subject is
has nothing to do with the problem. That looks like it should be two
patches.

Thanks,
Conor.

> Frank
> 
> >
> > Fixes: aaaf31be04260 ("pinctrl: extract pinctrl_generic_to_map() from pinctrl_generic_pins_function_dt_node_to_map()")
> > Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> > ---
> > CC: Linus Walleij <linusw@kernel.org>
> > CC: Frank Li <Frank.Li@nxp.com>
> > CC: Conor Dooley <conor.dooley@microchip.com>
> > CC: linux-gpio@vger.kernel.org
> > CC: linux-kernel@vger.kernel.org
> > ---
> >  drivers/pinctrl/pinconf.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h
> > index fa8fb0d290d1d..9711d16c38b62 100644
> > --- a/drivers/pinctrl/pinconf.h
> > +++ b/drivers/pinctrl/pinconf.h
> > @@ -195,7 +195,7 @@ pinctrl_generic_to_map(struct pinctrl_dev *pctldev, struct device_node *parent,
> >  		       unsigned int *num_maps, unsigned int *num_reserved_maps,
> >  		       const char **group_name, unsigned int ngroups,
> >  		       const char **functions, unsigned int *pins,
> > -		       void *function_data)
> > +		       unsigned int npins)
> >  {
> >  	return -ENOTSUPP;
> >  }
> > --
> > 2.53.0
> >

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-14 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 20:01 [PATCH v1] pinctrl: fix signature of extract pinctrl_generic_to_map() in nop case Conor Dooley
2026-05-14 21:08 ` Frank Li
2026-05-14 21:17   ` Conor Dooley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.