From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Linus Walleij <linusw@kernel.org>
Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/1] pinctrl: pinconf-generic: Use only fwnode API in parse_dt_cfg()
Date: Tue, 17 Mar 2026 10:28:44 +0200 [thread overview]
Message-ID: <abkQvKtZW24LLMiI@ashevche-desk.local> (raw)
In-Reply-To: <CAD++jL=N1vxiNEDMO5quFvYOi=u4FZdgUf7fLrhDDEB0mNnqbg@mail.gmail.com>
On Tue, Mar 10, 2026 at 10:19:40AM +0100, Linus Walleij wrote:
> On Thu, Mar 5, 2026 at 10:50 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
>
> > The parse_dt_cfg() uses OF and fwnode APIs. Fix this inconsistency by
> > fully switching it to use fwnode API and rename the function accordingly.
> >
> > While at it, add missing linux/property.h inclusion.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Patch applied, because obviously the kernel looks better after
> this patch than before it.
>
> I had to rebase the last hunk of changes manually.
>
> I think there is something more to do, but you probably
> already have a plan:
>
> > - ret = parse_dt_cfg(np, dt_params, ARRAY_SIZE(dt_params), cfg, &ncfg);
> > + ret = parse_fw_cfg(fwnode, dt_params, ARRAY_SIZE(dt_params), cfg, &ncfg);
>
> and that uses:
>
> #ifdef CONFIG_OF
> static const struct pinconf_generic_params dt_params[] = {
> { "bias-bus-hold", PIN_CONFIG_BIAS_BUS_HOLD, 0 },
> { "bias-disable", PIN_CONFIG_BIAS_DISABLE, 0 },
Yes, this all is still OF-centric code. The patch was solely for bringing a bit
of consistency into one (parse_fw_cfg()) function. For now not much plans are here
because ACPI case most likely will require something totally (with the reuse of
the opaque pointers to the mappings, though) different.
> Are you already working on a patch? ;)
Actually I found one improvement I need to submit.
And looking now at pinconf_generic_parse_dt_pinmux() it also can be translated
to fwnode inside.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-03-17 8:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 9:50 [PATCH v1 1/1] pinctrl: pinconf-generic: Use only fwnode API in parse_dt_cfg() Andy Shevchenko
2026-03-10 9:19 ` Linus Walleij
2026-03-17 8:28 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abkQvKtZW24LLMiI@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox