* [PATCH] pinctrl: sunxi: Enable the pinctrl Kconfig options by default
@ 2014-05-13 15:23 Maxime Ripard
2014-05-16 13:40 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2014-05-13 15:23 UTC (permalink / raw)
To: linux-arm-kernel
Enable the freshly introduced Kconfig options whenever their matching
architecture is enabled.
Since the Kconfig symbols for these machines are going through a different
tree, keep PINCTRL_SUNXI around for the moment to avoid breaking the defconfig.
It should be removed eventually.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
drivers/pinctrl/sunxi/Kconfig | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/pinctrl/sunxi/Kconfig b/drivers/pinctrl/sunxi/Kconfig
index 3940d098d6cb..2007327e0c48 100644
--- a/drivers/pinctrl/sunxi/Kconfig
+++ b/drivers/pinctrl/sunxi/Kconfig
@@ -6,27 +6,27 @@ config PINCTRL_SUNXI
select GENERIC_PINCONF
config PINCTRL_SUN4I_A10
- bool
+ def_bool PINCTRL_SUNXI || MACH_SUN4I
select PINCTRL_SUNXI
config PINCTRL_SUN5I_A10S
- bool
+ def_bool PINCTRL_SUNXI || MACH_SUN5I
select PINCTRL_SUNXI
config PINCTRL_SUN5I_A13
- bool
+ def_bool PINCTRL_SUNXI || MACH_SUN5I
select PINCTRL_SUNXI
config PINCTRL_SUN6I_A31
- bool
+ def_bool PINCTRL_SUNXI || MACH_SUN6I
select PINCTRL_SUNXI
config PINCTRL_SUN6I_A31_R
- bool
+ def_bool PINCTRL_SUNXI || MACH_SUN6I
select PINCTRL_SUNXI
config PINCTRL_SUN7I_A20
- bool
+ def_bool PINCTRL_SUNXI || MACH_SUN7I
select PINCTRL_SUNXI
endif
--
1.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] pinctrl: sunxi: Enable the pinctrl Kconfig options by default
2014-05-13 15:23 [PATCH] pinctrl: sunxi: Enable the pinctrl Kconfig options by default Maxime Ripard
@ 2014-05-16 13:40 ` Linus Walleij
2014-05-23 10:19 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2014-05-16 13:40 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, May 13, 2014 at 5:23 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> Enable the freshly introduced Kconfig options whenever their matching
> architecture is enabled.
>
> Since the Kconfig symbols for these machines are going through a different
> tree, keep PINCTRL_SUNXI around for the moment to avoid breaking the defconfig.
> It should be removed eventually.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
OK patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] pinctrl: sunxi: Enable the pinctrl Kconfig options by default
2014-05-16 13:40 ` Linus Walleij
@ 2014-05-23 10:19 ` Arnd Bergmann
2014-05-23 18:45 ` Maxime Ripard
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2014-05-23 10:19 UTC (permalink / raw)
To: linux-arm-kernel
On Friday 16 May 2014, Linus Walleij wrote:
> On Tue, May 13, 2014 at 5:23 PM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
>
> > Enable the freshly introduced Kconfig options whenever their matching
> > architecture is enabled.
> >
> > Since the Kconfig symbols for these machines are going through a different
> > tree, keep PINCTRL_SUNXI around for the moment to avoid breaking the defconfig.
> > It should be removed eventually.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
>
> OK patch applied.
I stumbled over this build error now:
/git/arm-soc/drivers/phy/phy-sun4i-usb.c: In function 'sun4i_usb_phy_probe':
/git/arm-soc/drivers/phy/phy-sun4i-usb.c:282:3: error: implicit declaration of function 'devm_reset_control_get' [-Werror=implicit-function-declaration]
phy->reset = devm_reset_control_get(dev, name);
^
/git/arm-soc/drivers/phy/phy-sun4i-usb.c:282:14: warning: assignment makes pointer from integer without a cast [enabled by default]
phy->reset = devm_reset_control_get(dev, name);
^
cc1: some warnings being treated as errors
make[4]: *** [drivers/phy/phy-sun4i-usb.o] Error 1
/git/arm-soc/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c: In function 'sun6i_a31_r_pinctrl_probe':
/git/arm-soc/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c:103:2: error: implicit declaration of function 'devm_reset_control_get' [-Werror=implicit-function-declaration]
rstc = devm_reset_control_get(&pdev->dev, NULL);
^
/git/arm-soc/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c:103:7: warning: assignment makes pointer from integer without a cast [enabled by default]
rstc = devm_reset_control_get(&pdev->dev, NULL);
^
cc1: some warnings being treated as errors
It seems both the phy and the pinctrl driver actually depend on the
reset controller framework, but this is not reflected in Kconfig.
I guess these should either use devm_reset_control_get_optional
or have 'depends on RESET_CONTROLLER' in Kconfig.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] pinctrl: sunxi: Enable the pinctrl Kconfig options by default
2014-05-23 10:19 ` Arnd Bergmann
@ 2014-05-23 18:45 ` Maxime Ripard
0 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2014-05-23 18:45 UTC (permalink / raw)
To: linux-arm-kernel
Hi Arnd,
On Fri, May 23, 2014 at 12:19:34PM +0200, Arnd Bergmann wrote:
> I stumbled over this build error now:
>
> /git/arm-soc/drivers/phy/phy-sun4i-usb.c: In function 'sun4i_usb_phy_probe':
> /git/arm-soc/drivers/phy/phy-sun4i-usb.c:282:3: error: implicit declaration of function 'devm_reset_control_get' [-Werror=implicit-function-declaration]
> phy->reset = devm_reset_control_get(dev, name);
> ^
> /git/arm-soc/drivers/phy/phy-sun4i-usb.c:282:14: warning: assignment makes pointer from integer without a cast [enabled by default]
> phy->reset = devm_reset_control_get(dev, name);
> ^
> cc1: some warnings being treated as errors
> make[4]: *** [drivers/phy/phy-sun4i-usb.o] Error 1
> /git/arm-soc/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c: In function 'sun6i_a31_r_pinctrl_probe':
> /git/arm-soc/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c:103:2: error: implicit declaration of function 'devm_reset_control_get' [-Werror=implicit-function-declaration]
> rstc = devm_reset_control_get(&pdev->dev, NULL);
> ^
> /git/arm-soc/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c:103:7: warning: assignment makes pointer from integer without a cast [enabled by default]
> rstc = devm_reset_control_get(&pdev->dev, NULL);
> ^
> cc1: some warnings being treated as errors
Grrrr :(
> It seems both the phy and the pinctrl driver actually depend on the
> reset controller framework, but this is not reflected in Kconfig.
>
> I guess these should either use devm_reset_control_get_optional
> or have 'depends on RESET_CONTROLLER' in Kconfig.
Yeah, we should have a depends on.
I'll send some patches.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140523/7573f8fb/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-23 18:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 15:23 [PATCH] pinctrl: sunxi: Enable the pinctrl Kconfig options by default Maxime Ripard
2014-05-16 13:40 ` Linus Walleij
2014-05-23 10:19 ` Arnd Bergmann
2014-05-23 18:45 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).