[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3229743.TnQsZfzpM9@wuerfel>
Date: Fri, 13 Mar 2015 11:08:37 +0100
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Yingjoe Chen <yingjoe.chen@...iatek.com>,
Linus Walleij <linus.walleij@...aro.org>,
srv_heupstream@...iatek.com,
Hongzhou Yang <hongzhou.yang@...iatek.com>,
Catalin Marinas <catalin.marinas@....com>,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-mediatek@...ts.infradead.org,
Matthias Brugger <matthias.bgg@...il.com>
Subject: Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig
On Friday 13 March 2015 14:46:35 Yingjoe Chen wrote:
> > which will let you turn on the options if COMPILE_TEST is set, but not
> > let you turn them off when the drivers are required.
>
> Yes, this is preferred. Because we don't have MACH_MT8173, so it is
> possible a ARM64 + ARCH_MEDIATEK system doesn't need PINCTRL_MT8173, so
> we still need 2 slightly different logic. Is it OK if I do this?
> Also add some comments so future SoCs can follow the correct template.
>
> # For ARMv7 SoCs
> config PINCTRL_MT8135
> bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
> default MACH_MT8135
> select PINCTRL_MTK_COMMON
>
> # For ARMv8 SoCs
> config PINCTRL_MT8173
> bool "Mediatek MT8173 pin control"
> depends on ARM64 || COMPILE_TEST
> default ARM64
> select PINCTRL_MTK_COMMON
>
Looks good with one modification: please make it
default ARM64 && ARCH_MEDIATEK
so the driver does not get turned on by default for ARM64 configurations that
do not contain support for mediatek chips.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists