Re: [PATCH 0/2 v8] gpiolib: finish the legacy cleanup

From: Arnd Bergmann

Date: Tue Nov 24 2026 - 08:41:42 EST


On Tue, Nov 24, 2026, at 13:44, Bartosz Golaszewski wrote:
> On Tue, Nov 24, 2026 at 11:53:40AM +0100, Arnd Bergmann wrote:
>> On Tue, Nov 24, 2026, at 02:10, Dmitry Torokhov wrote:
>> > Hi Bartosz,
>> >
>> > On Mon, Nov 23, 2026 at 04:41:32PM +0100, Bartosz Golaszewski wrote:
>> >> Can I apply v7 and provide it to the SH maintainers on an immutable
>> >> branch?
>> >
>> > BTW, I have the soc_button_array rework (converting it to software nodes
>> > and dropping "select GPIOLIB_LEGACY") on an immutable branch based on
>> > v7.4-rc2:
>> >
>> > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git
>> > ib/7.4-rc2-soc-button-array
>>
>> Nice to see that this is ready.
>>
>> > I recommend pulling it into the gpio tree before applying Arnd's work so
>> > that x86 builds with INPUT_SOC_BUTTON_ARRAY enabled no longer pull in
>> > CONFIG_GPIOLIB_LEGACY either.
>>
>> I don't think the order matters, my patch 1/2 just won't have an
>> effect on configurations that enable INPUT_SOC_BUTTON_ARRAY until your
>> patch is merged.
>>
>
> I'm not following something, the conflict is with the SH tree, isn't it?

I think we were talking about two different issues:

a) the sh/rsk7203 conflict is about the header inclusion: to make it
build with my patch 2/2, I need to change linux/gpio.h to
linux/gpio/legacy.h, while Dmitry series tries to change it
to linux/gpio/consumer.h instead of either. It's not a hard
problem tbh, just a bit annoying.

b) The INPUT_SOC_BUTTON_ARRAY change has nothing to do with my
patch 2/2, only with 1/2, as it addresses one of the remaining
users of the legacy interface. I hadn't realized that Dmitry's
comment was a reply to your question about a).

Arnd