[GIT PULL 2/2] SoCFPGA update for v4.13
Linus Walleij
linus.walleij at linaro.org
Fri Jun 23 05:28:58 PDT 2017
On Fri, Jun 23, 2017 at 2:03 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> On Wed, Jun 21, 2017 at 5:35 PM, Dinh Nguyen <dinguyen at kernel.org> wrote:
>> Hi Arnd, Kevin, and Olof:
>>
>> Please pull in this SoCFPGA Kconfig update for v4.13.
>
> I'd like to defer this one until I hear back from the GPIO maintainers:
>
> With this patch, CONFIG_ARCH_NR_GPIO increases from 1024 to 2048
> in the ARM defconfig build. Is this ok in terms of runtime overhead?
There is no problem with runtime overhead, only with footprint.
The array of sizeof(gpio_desc) increases to double.
struct looks like so:
struct gpio_desc {
struct gpio_device *gdev;
unsigned long flags;
const char *label;
const char *name;
};
Looks like 4x32 bits in most cases, so this means a 4*4*1024 =
16 KiB footprint increase.
We have had to allocate this statically because so many playforms still
use the legacy GPIO API.
> If not, are there any alternatives?
Not really, if they have this many GPIOs.
Helping out ridding the kernel of users of the old GPIO global
numberspace ABI is appreciated though.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list