Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757716AbbKSEvg (ORCPT ); Wed, 18 Nov 2015 23:51:36 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:36302 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757688AbbKSEve (ORCPT ); Wed, 18 Nov 2015 23:51:34 -0500 X-AuditID: cbfec7f5-f79b16d000005389-33-564d55539df9 Subject: Re: [PATCH 1/2] clk: samsung: Don't build ARMv8 clock drivers on ARMv7 To: Tomasz Figa References: <1447637775-9887-1-git-send-email-k.kozlowski@samsung.com> <1447637775-9887-2-git-send-email-k.kozlowski@samsung.com> Cc: Sylwester Nawrocki , Michael Turquette , Stephen Boyd , "linux-samsung-soc@vger.kernel.org" , linux-clk@vger.kernel.org, linux-kernel , Catalin Marinas , Will Deacon , Kukjin Kim , Olof Johansson , Arnd Bergmann , linux-arm-kernel , Kevin Hilman , Pankaj Dubey From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-id: <564D5552.4070806@samsung.com> Date: Thu, 19 Nov 2015 13:51:30 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsVy+t/xK7rBob5hBv96zS3+TjrGbvF+WQ+j xesXhhb9j18zW3w9vILRYtPja6wWH3vusVpc3jWHzWLG+X1MFhdPuVqcuv6ZzWLR1i/sFoff tLNa/DjTzWKxatcfRouXH0+wOAh4rJm3htHj969JjB7vb7Sye1zu62Xy2DnrLrvHplWdbB53 ru1h89i8pN7jyokmVo++LasYPT5vkgvgjuKySUnNySxLLdK3S+DK6FzezVTwU6xi7te97A2M nwS7GDk5JARMJA6c3cMCYYtJXLi3nq2LkYtDSGApo8ST+bMYQRJCAl8YJe5N5QaxhQX8Jd59 PMsGYosIqEt8m9LPDtFwilFiwrc3jCAOs8A1FolLtx6AVbEJGEtsXr6EDWKFnERv9ySwdbwC WhJ7np9hBrFZBFQlZn08AFYjKhAhMXFCAytEjaDEj8n3wOo5BYIlFtz5ArSAA2iBusSUKbkg YWYBeYnNa94yT2AUnIWkYxZC1SwkVQsYmVcxiqaWJhcUJ6XnGukVJ+YWl+al6yXn525ihETj 1x2MS49ZHWIU4GBU4uHdcMonTIg1say4MvcQowQHs5IIb9kloBBvSmJlVWpRfnxRaU5q8SFG aQ4WJXHembvehwgJpCeWpGanphakFsFkmTg4pRoYry8uPf7lG8faid/7qzYx1q5PY1ovGffU 50m8TyuL5lPL/bMn7H8Wf0zrdWlF2pLJnFm9bXKtjgnamw+FHfCobHD1fmij7sM1V2F5y8K+ jKnGxfELm2pbuLL+3rPMj+H0bp9wyv/8w5pOpwgRyz3Hc+6wcJzsvir1Snilpq3Kv+pPD0x3 a+9VYinOSDTUYi4qTgQAQPPa98ICAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3088 Lines: 99 On 19.11.2015 13:18, Tomasz Figa wrote: > Hi Krzysztof, > > Good idea, just a couple of nits inline. Other than that: > > Acked-by: Tomasz Figa > > 2015-11-16 10:36 GMT+09:00 Krzysztof Kozlowski : >> Currently the Exynos5433 (ARMv8 SoC) clock driver depends on ARCH_EXYNOS >> so it is built also on ARMv7. This does not bring any kind of benefit. >> There won't be a single kernel image for ARMv7 and ARMv8 SoCs (like >> multi_v7 for ARMv7). >> >> Instead build clock drivers only for respective SoC's architecture. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> drivers/clk/samsung/Kconfig | 13 +++++++++++++ >> drivers/clk/samsung/Makefile | 4 ++-- >> 2 files changed, 15 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig >> index 84196ecdaa12..5f138fc4d84d 100644 >> --- a/drivers/clk/samsung/Kconfig >> +++ b/drivers/clk/samsung/Kconfig >> @@ -2,6 +2,7 @@ config COMMON_CLK_SAMSUNG >> bool >> select COMMON_CLK >> >> +# ARMv7 SoCs: > > nit: I'm not aware of any recent upgrade of the S3C24xx line-up to > ARMv7 cores. ;) I'd suggest "32-bit ARM SoCs" or just "ARM SoCs"... okay > >> config S3C2410_COMMON_CLK >> bool >> select COMMON_CLK_SAMSUNG >> @@ -24,3 +25,15 @@ config S3C2443_COMMON_CLK >> bool >> select COMMON_CLK_SAMSUNG >> >> +# ARMv8 SoCs: > > and then here "64-bit ARM SoCs" or "ARM64 SoCs", whichever you prefer. > I'd lean towards simple "ARM" and "ARM64". ARM64 sounds good. > >> +config EXYNOS5433_COMMON_CLK >> + bool >> + depends on ARM64 || COMPILE_TEST >> + default ARCH_EXYNOS > > nit: bool and default can be combined into def_bool ARCH_EXYNOS > Right. >> + select COMMON_CLK_SAMSUNG >> + >> +config EXYNOS7_COMMON_CLK >> + bool >> + depends on ARM64 || COMPILE_TEST >> + default ARCH_EXYNOS > > nit: See above. > > However, I don't think we can disable compilation of particular 64-bit > SoCs, so maybe there isn't much sense in splitting their clock drivers > into separate symbols? To me it does not really matter. Indeed as you said one cannot disable building of one particular Exynos SoCs. However we could still want not build some parts of such SoCs (like clock, pinctrl etc). I don't see much benefit for such case except when someone would like to drastically reduce the size of kernel image (for whatever reasons he has.). On the other hand having separate symbols causes duplication and obfuscates a little the Kconfig/Makefile. I like keeping things simple so one symbol for all ARM64 Exynos clocks sounds good. Sylwester preferred current approach. You and Pankaj seem to prefer one symbol-way. Should we make a voting? :) Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/