From: "Arnd Bergmann" <arnd@arndb.de>
To: "Geert Uytterhoeven" <geert@linux-m68k.org>
Cc: "Arnd Bergmann" <arnd@kernel.org>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Alexander Sverdlin" <alexander.sverdlin@gmail.com>,
"kernel test robot" <lkp@intel.com>,
"Peng Fan" <peng.fan@nxp.com>,
"Koichiro Den" <koichiro.den@canonical.com>,
"Lee Jones" <lee@kernel.org>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"André Draszik" <andre.draszik@linaro.org>,
"Niko Pasaloukos" <nikolaos.pasaloukos@blaize.com>,
"Thomas Richard" <thomas.richard@bootlin.com>,
"Yixun Lan" <dlan@gentoo.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gpiolib: enable CONFIG_GPIOLIB_LEGACY even for !GPIOLIB
Date: Tue, 29 Jul 2025 16:11:22 +0200 [thread overview]
Message-ID: <476d821e-1f8a-44e3-a976-def1f435440e@app.fastmail.com> (raw)
In-Reply-To: <CAMuHMdUSsKeY-Uj1xA4SatDk+Mb0e4LJyOU=aS52YbA3DSMLrA@mail.gmail.com>
On Tue, Jul 29, 2025, at 14:12, Geert Uytterhoeven wrote:
> On Tue, 29 Jul 2025 at 13:58, Arnd Bergmann <arnd@arndb.de> wrote:
>> On Tue, Jul 29, 2025, at 12:47, Geert Uytterhoeven wrote:
>> Do you have an example config that shows this problem?
>> I've tried a couple of configurations on m68k now but are unable
>> to reproduce this, using 'defconfig' (without GPIOLIB) and
>> 'm5475evb_defconfig' (with GPIOLIB).
>>
>> The intention of this patch (in combination with the previous one)
>> was that the legacy interfaces would still behave exactly like
>> before, falling back to the stubs when GPIOLIB is disabled.
>
> I haven't seen any actual failures. When discovering
> CONFIG_GPIOLIB_LEGACY=y in all m68k defconfigs, my initial worry
> was that it would increase kernel size by needlessly including
> gpiolib-legacy.o. When that didn't turn out to be true, I started
> wondering how your commit would fix anything without including
> gpiolib-legacy.o. Looks like any users just uses the simple static
> inlines...
> Sorry for confusing you.
No worries, thanks for paying attention to incoming changes!
If you want to see what the actual plan is, have a look at
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=config-gpio-legacy
which ends with making GPIOLIB_LEGACY actually optional.
Any driver that actually uses the legacy gpiolib interfaces
at that point is already specific to one of the few platforms
that still have legacy gpiochips (sh, sa1100, pxa, s3c64xx,
orion5x, mv78xx0, coldfire, alchemy, txx9, bcm47xx, bcm63xx,
rb532, olpc, and a few x86 atom boards), or it has an explicit
dependency on GPIOLIB_LEGACY.
The arm boards are already on their way out, but the others
could probably use some help converting to gpio descriptors.
Arnd
next prev parent reply other threads:[~2025-07-29 14:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-26 21:10 Arnd Bergmann
2025-07-27 8:27 ` Bartosz Golaszewski
2025-07-29 10:47 ` Geert Uytterhoeven
2025-07-29 11:57 ` Arnd Bergmann
2025-07-29 12:12 ` Geert Uytterhoeven
2025-07-29 14:11 ` Arnd Bergmann [this message]
2025-08-13 22:26 ` Rob Herring
2025-09-01 11:44 ` Bartosz Golaszewski
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=476d821e-1f8a-44e3-a976-def1f435440e@app.fastmail.com \
--to=arnd@arndb.de \
--cc=alexander.sverdlin@gmail.com \
--cc=andre.draszik@linaro.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@kernel.org \
--cc=brgl@bgdev.pl \
--cc=dlan@gentoo.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=koichiro.den@canonical.com \
--cc=lars@metafoo.de \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=nikolaos.pasaloukos@blaize.com \
--cc=peng.fan@nxp.com \
--cc=thomas.richard@bootlin.com \
/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
all inboxes | Powered by JetHome®