[PATCH] gpio: Allow user to customise maximum number of GPIOs

Christophe Leroy christophe.leroy at csgroup.eu
Fri Aug 26 08:08:16 PDT 2022



Le 26/08/2022 à 15:49, Linus Walleij a écrit :
> On Thu, Aug 25, 2022 at 4:00 PM Christophe Leroy
> <christophe.leroy at csgroup.eu> wrote:
> 
>>> Christophe? Will you take a stab at it?
>>
>> Which patch should I write ?
> 
> One that removes CONFIG_ARCH_HAS_NR_GPIO entirely, then
> allocate bases for new GPIO chips from 0 and upward instead.
> And then see what happens.
> 

Ok, I can give it a try.

But what do I do with:

drivers/gpio/gpio-aggregator.c:	bitmap = bitmap_alloc(ARCH_NR_GPIOS, 
GFP_KERNEL);

Christophe


More information about the linux-arm-kernel mailing list