Re: [PATCH v2] ARM: ASPEED: update default ARCH_NR_GPIO for ARCH_ASPEED

From: Andrew Jeffery
Date: Sun Nov 24 2019 - 19:02:57 EST




On Thu, 31 Oct 2019, at 12:10, rentao.bupt@xxxxxxxxx wrote:
> From: Tao Ren <rentao.bupt@xxxxxxxxx>
>
> Increase the max number of GPIOs from default 512 to 1024 for ASPEED
> platforms, because Facebook Yamp (AST2500) BMC platform has total 594
> GPIO pins (232 provided by ASPEED SoC, and 362 by I/O Expanders).
>
> Signed-off-by: Tao Ren <rentao.bupt@xxxxxxxxx>
> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Hopefully userspace is not making assumptions about sysfs gpiochip numbers.

Acked-by: Andrew Jeffery <andrew@xxxxxxxx>