[PATCH v3 7/7] ARM: sunxi: update the default ARCH_NR_GPIO for sunxi arch

Linus Walleij linus.walleij at linaro.org
Wed Apr 23 06:54:35 PDT 2014


On Tue, Apr 22, 2014 at 4:20 PM, Arnd Bergmann <arnd at arndb.de> wrote:

>> Patch applied, and grrrr we need to get rid of these static #gpios defines
>> in the long run.
>
> Yes, that would be nice. I guess the gpio-descriptor framework should
> have solved this, but we can't move everything over to that soon, right?

Not really, it has to happen platform by platform.

I did consider putting all the GPIO descriptors into a radix and
use that internally in gpiolib, but that wasn't easy to do
when I tried it, maybe I just thought backwards.

I would appreciate if drivers for new archs like arm64 would
use only GPIO descriptors from day one. Also if new drivers
only apply a an entirely new machine even. They should just
use descriptors.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list