Re: [PATCH] of: property: stop creating callback for each pinctrl-N property

From: Rob Herring (Arm)

Date: Tue Jan 06 2026 - 11:27:10 EST



On Fri, 19 Dec 2025 13:18:11 +0100, Rasmus Villemoes wrote:
> While not a lot in the grand scheme of things, this eliminates 8*2
> pointless function calls for almost every property present in the
> device tree (the exception are the few properties that were already
> matched). It also seems to reduce .text by about 1.5K - why gcc
> decides to inline parse_prop_cells() in every instantiation I don't know.
>
> Supporting double-digit suffixes would still require tweaking, but it
> does match pinctrl-9.
>
> Signed-off-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
> ---
> drivers/of/property.c | 32 ++++++++++++++------------------
> 1 file changed, 14 insertions(+), 18 deletions(-)
>

Applied, thanks!