Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600412 > unrolled thread

Re: [PATCH] pinctrl: sunxi: select GPIOLIB

Started byLinus Walleij <linus.walleij@linaro.org>
First post2017-03-14 14:50 +0100
Last post2017-03-14 14:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] pinctrl: sunxi: select GPIOLIB Linus Walleij <linus.walleij@linaro.org> - 2017-03-14 14:50 +0100

#1600412 — Re: [PATCH] pinctrl: sunxi: select GPIOLIB

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-03-14 14:50 +0100
SubjectRe: [PATCH] pinctrl: sunxi: select GPIOLIB
Message-ID<tkUZQ-Q3-27@gated-at.bofh.it>
On Tue, Feb 28, 2017 at 8:08 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:

> Allwinner pin controllers are also GPIO controllers.
>
> Currently, if GPIOLIB is forgot to be chosen, the build of
> pinctrl-sunxi.c will fail for lacking a lot of gpiochip_* functions.
>
> Select GPIOLIB to ensure this driver can be built.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> ---
> This bug is found when I try to add sunxi drivers on an ARM64
> allnoconfig, in order to prove that sunxi-ng ccu driver depends on
> reset_controller framework.
>
> I proved the latter dependency, but how to satisfy it still needs
> some discussion.

Patch applied.

This is the right thing to do.

We used to have a restriction such that a pin control driver
could not simply select GPIOLIB, because the selection had
to be done from the platform instead.

But we have fixed that! We can now select GPIOLIB
directly from any driver that needs it.

Yours,
Linus Walleij

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web