Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1153471pxb; Fri, 20 Nov 2020 02:30:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUtPE95yZs1JqwK0qlWdMRxBSi6ljtRD7vK2vSbfh3Aaf5nV9ozfky0vEVmNO1BfCn7QKj X-Received: by 2002:a17:906:831a:: with SMTP id j26mr32650337ejx.450.1605868226778; Fri, 20 Nov 2020 02:30:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605868226; cv=none; d=google.com; s=arc-20160816; b=X8FDwAjgeyXgdwXoOyJ3QQW9TftHslEAtoyGgergL1yPa2FM2528Nq06mjcboQBz/s SeW9E5tsyNpH53nnayr2M++wK92op4ILtl06rSarxl41sn/p+RasT/uvPlzCK60kOXxe lHz3xbxmDzocyZdqqA0YYOi6P71rH71m++IiXR34k11c1asuQjADiK9c3Gl96nzsMDLx KwNHZ/exgomtvtUZ2dCwK2l4c7/zYt3BcSr3IVfcUzAMRJK/an4wDIYrIC5bXkPXhzCo YhRouz5ddqjd1HTUTcqYThYrn3TZZznRI84tL1Q+Uvr1dKY3hWL1M5oitG2OzG+nUtnz 1Cyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:to:subject :dkim-signature:dkim-filter; bh=7RujST5AViMMbyJUqfeZKhDggko2Fuju3w5K5L+MkuQ=; b=GrOsmF5ey2mf/Zx9+onTrG6ybEDGtjIzR2aaJbK4SL+unuCHs2AQMXOLxfbDLQA5Od O0SHmDkDM3X+ipLhrohF9cvbXc6YUDaY0sNvu5jE83OK7dZw6+zj4uJQ8Nr4YgrtkQv0 q2bn0kbbwr4gxCHhzE0gtGMv+OBExFP1EddHq+Jrygp7nXT4xpdeZ+MlNGH1MS5fe8V+ HBBzCeX4Cjv91sziNeynJpe20kCfpSlGt7611A6ESTb8qEIGo4aGVfFZxJs38sq5Ht0S dKV2PO/V79I372PDJ/1dYoCJOlEjRe48KwI67P+Jmbopl5sDKYQXJzcpuWG1rSB6z6f5 vuqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=P34G2Tt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si1691696edr.228.2020.11.20.02.30.03; Fri, 20 Nov 2020 02:30:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=P34G2Tt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727543AbgKTKZJ (ORCPT + 99 others); Fri, 20 Nov 2020 05:25:09 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:33445 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727524AbgKTKZJ (ORCPT ); Fri, 20 Nov 2020 05:25:09 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20201120102504epoutp044df2b3c270e59222be03f1b49762163a~JMFnsTn_31556715567epoutp04J for ; Fri, 20 Nov 2020 10:25:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20201120102504epoutp044df2b3c270e59222be03f1b49762163a~JMFnsTn_31556715567epoutp04J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605867904; bh=7RujST5AViMMbyJUqfeZKhDggko2Fuju3w5K5L+MkuQ=; h=Subject:To:From:Date:In-Reply-To:References:From; b=P34G2Tt11Lyki9Vrs/xxl3QQmqllhrPBdPKQlq7dptpE2qXchgNj1oVHfm7+gYMRW 39bPpgiSK6Rt92/AWjJ7MHbgPSwben87tUeiWBEu26P5ujZC+viUiNWNFTEnjoq3X1 Qn/T1L9803Nupz9gjZo/dOlmE5tb5LfIFgv8741A= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20201120102504epcas1p229c6ed101e12441813ae3ba9d2a9d67b~JMFnS1cmp1037610376epcas1p2d; Fri, 20 Nov 2020 10:25:04 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.152]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Cct3220XszMqYlp; Fri, 20 Nov 2020 10:25:02 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id F3.41.09582.E7997BF5; Fri, 20 Nov 2020 19:25:02 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20201120102500epcas1p44ed3f23e6a965e2dd22789f020804b73~JMFjzXaH90677506775epcas1p4Q; Fri, 20 Nov 2020 10:25:00 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201120102500epsmtrp15352bd6a1f1e0d937ff0c539a022b7ce~JMFjypxVY2548025480epsmtrp1C; Fri, 20 Nov 2020 10:25:00 +0000 (GMT) X-AuditID: b6c32a37-8afff7000000256e-c1-5fb7997e0c8b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 91.D4.13470.C7997BF5; Fri, 20 Nov 2020 19:25:00 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201120102500epsmtip28db34feb69ff9ad5c0a3f287207568ab~JMFjn8u0E2039220392epsmtip20; Fri, 20 Nov 2020 10:25:00 +0000 (GMT) Subject: Re: [PATCH] clk: samsung: allow compile testing of Exynos, S3C64xx and S5Pv210 To: Krzysztof Kozlowski , Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Fri, 20 Nov 2020 19:39:23 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20201119164509.754851-1-krzk@kernel.org> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJsWRmVeSWpSXmKPExsWy7bCmvm7dzO3xBh9eclucP7+B3eJjzz1W i8u75rBZzDi/j8ni4ilXi8Nv2lkt/l3byGKxatcfRgcOj/c3Wtk9ds66y+6xaVUnm0ffllWM Hp83yQWwRmXbZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl 5gCdoqRQlphTChQKSCwuVtK3synKLy1JVcjILy6xVUotSMkpsCzQK07MLS7NS9dLzs+1MjQw MDIFKkzIzthz7BNjwR2Liof/J7M2MC7Q72Lk4JAQMJHYdCO3i5GLQ0hgB6PEsSNPmCCcT4wS TY/uMkI43xglph44wdrFyAnW8fLaS1aIxF5GiV97bkC1vAfqv7uDDWSusECkxMHvNiBxEYG1 TBJvX81mBOlmE9CS2P/iBhuIzS+gKHH1x2OwOK+AncTm/YuZQGwWAVWJGTdOMYPYogJhEie3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B6JomW 1aeYIIo6GSWWXH7KBDKITUBLYv+LG2wgNr+AosTVH48ZQWxeATuJzfsXg9WwCKhKzLhxihnE FhUIk9i55DETRI2gxMmZT1hAbE4BM4kNE3aB2cwC6hJ/5l1ihrDFJW49mc8EYctLbH87h3kC o9AsJO2zkLTMQtIyC0nLAkaWVYySqQXFuem5xYYFhnmp5XrFibnFpXnpesn5uZsYwfGjpbmD cfuqD3qHGJk4GA8xSnAwK4nwrtXcGi/Em5JYWZValB9fVJqTWnyIUZqDRUmc90bhwjghgfTE ktTs1NSC1CKYLBMHp1QDU6avdx+HUuxjv0Unzqmld31km1v5zGqu9c/JSmXHPDkmBPS++rO+ y+PAhzpl/vfWti4bHoifP2YZo/Ug6tBpxiVvzlUwv2VhkhNZ5WFibcSi7LOpksVmyYy0no9P 75xWWMUSL9x46vG0r5vtHsyVnlwQ+qOOI+RWVKasZ3fLYr6yFbNO7VPrPHDs3uzYyx23l8ie SchaJu7NbbJx0dqzzHH/eDgMPOfevN10qYizrrfp0Od79uEJgt0ZdU2xUzLeb+dfzM9nuXg2 m7V2gZTc8VKr2yrhT7evYH2naPXY8/XTGyv8QiJjPqw4Vftu59FJOurc8xaeF1rv6xK1w8z9 70mzrkXbG3o/J7AYuL49pMRSnJFoqMVcVJwIABXf8cgOAwAA X-CMS-MailID: 20201120102500epcas1p44ed3f23e6a965e2dd22789f020804b73 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201119164614epcas1p23b1a2b17bf89f6396b7979fff623bdee References: <20201119164509.754851-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/20 1:45 AM, Krzysztof Kozlowski wrote: > So far all Exynos, S3C64xx and S5Pv210 clock units were selected by > respective SOC/ARCH Kconfig option. On a kernel built for selected > SoCs, this allowed to build only limited set of matching clock drivers. > However compile testing was not possible in such case as Makefile object > depent on SOC/ARCH option. > > Add separate Kconfig options for each of them to be able to compile > test. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/clk/samsung/Kconfig | 67 ++++++++++++++++++++++++++++++++++-- > drivers/clk/samsung/Makefile | 22 ++++++------ > include/linux/clk/samsung.h | 4 +-- > 3 files changed, 78 insertions(+), 15 deletions(-) > > diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig > index 7e9c186e57ef..0441c4f73ac9 100644 > --- a/drivers/clk/samsung/Kconfig > +++ b/drivers/clk/samsung/Kconfig > @@ -2,10 +2,73 @@ > # Recent Exynos platforms should just select COMMON_CLK_SAMSUNG: > config COMMON_CLK_SAMSUNG > bool "Samsung Exynos clock controller support" if COMPILE_TEST > - # Clocks on ARM64 SoCs (e.g. Exynos5433, Exynos7) are chosen by > - # EXYNOS_ARM64_COMMON_CLK to avoid building them on ARMv7: > + select S3C64XX_COMMON_CLK if ARM && ARCH_S3C64XX > + select S5PV210_COMMON_CLK if ARM && ARCH_S5PV210 > + select EXYNOS_3250_COMMON_CLK if ARM && SOC_EXYNOS3250 > + select EXYNOS_4_COMMON_CLK if ARM && ARCH_EXYNOS4 > + select EXYNOS_5250_COMMON_CLK if ARM && SOC_EXYNOS5250 > + select EXYNOS_5260_COMMON_CLK if ARM && SOC_EXYNOS5260 > + select EXYNOS_5410_COMMON_CLK if ARM && SOC_EXYNOS5410 > + select EXYNOS_5420_COMMON_CLK if ARM && SOC_EXYNOS5420 > select EXYNOS_ARM64_COMMON_CLK if ARM64 && ARCH_EXYNOS > > +config S3C64XX_COMMON_CLK > + bool "Samsung S3C64xx clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung S3C64xx SoCs. > + Choose Y here only if you build for this SoC. > + > +config S5PV210_COMMON_CLK > + bool "Samsung S5Pv210 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung S5Pv210 SoCs. > + Choose Y here only if you build for this SoC. > + > +config EXYNOS_3250_COMMON_CLK > + bool "Samsung Exynos3250 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung > + Exynos3250 SoCs. Choose Y here only if you build for this SoC. > + > +config EXYNOS_4_COMMON_CLK > + bool "Samsung Exynos4 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung > + Exynos4212 and Exynos4412 SoCs. Choose Y here only if you build for > + this SoC. > + > +config EXYNOS_5250_COMMON_CLK > + bool "Samsung Exynos5250 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung > + Exynos5250 SoCs. Choose Y here only if you build for this SoC. > + > +config EXYNOS_5260_COMMON_CLK > + bool "Samsung Exynos5260 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung > + Exynos5260 SoCs. Choose Y here only if you build for this SoC. > + > +config EXYNOS_5410_COMMON_CLK > + bool "Samsung Exynos5410 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung > + Exynos5410 SoCs. Choose Y here only if you build for this SoC. > + > +config EXYNOS_5420_COMMON_CLK > + bool "Samsung Exynos5420 clock controller support" if COMPILE_TEST > + depends on COMMON_CLK_SAMSUNG > + help > + Support for the clock controller present on the Samsung > + Exynos5420 SoCs. Choose Y here only if you build for this SoC. > + > config EXYNOS_ARM64_COMMON_CLK > bool "Samsung Exynos ARMv8-family clock controller support" if COMPILE_TEST > depends on COMMON_CLK_SAMSUNG > diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile > index 6891b087acff..028b2e27a37e 100644 > --- a/drivers/clk/samsung/Makefile > +++ b/drivers/clk/samsung/Makefile > @@ -4,15 +4,15 @@ > # > > obj-$(CONFIG_COMMON_CLK) += clk.o clk-pll.o clk-cpu.o > -obj-$(CONFIG_SOC_EXYNOS3250) += clk-exynos3250.o > -obj-$(CONFIG_ARCH_EXYNOS4) += clk-exynos4.o > -obj-$(CONFIG_ARCH_EXYNOS4) += clk-exynos4412-isp.o > -obj-$(CONFIG_SOC_EXYNOS5250) += clk-exynos5250.o > -obj-$(CONFIG_SOC_EXYNOS5250) += clk-exynos5-subcmu.o > -obj-$(CONFIG_SOC_EXYNOS5260) += clk-exynos5260.o > -obj-$(CONFIG_SOC_EXYNOS5410) += clk-exynos5410.o > -obj-$(CONFIG_SOC_EXYNOS5420) += clk-exynos5420.o > -obj-$(CONFIG_SOC_EXYNOS5420) += clk-exynos5-subcmu.o > +obj-$(CONFIG_EXYNOS_3250_COMMON_CLK) += clk-exynos3250.o > +obj-$(CONFIG_EXYNOS_4_COMMON_CLK) += clk-exynos4.o > +obj-$(CONFIG_EXYNOS_4_COMMON_CLK) += clk-exynos4412-isp.o > +obj-$(CONFIG_EXYNOS_5250_COMMON_CLK) += clk-exynos5250.o > +obj-$(CONFIG_EXYNOS_5250_COMMON_CLK) += clk-exynos5-subcmu.o > +obj-$(CONFIG_EXYNOS_5260_COMMON_CLK) += clk-exynos5260.o > +obj-$(CONFIG_EXYNOS_5410_COMMON_CLK) += clk-exynos5410.o > +obj-$(CONFIG_EXYNOS_5420_COMMON_CLK) += clk-exynos5420.o > +obj-$(CONFIG_EXYNOS_5420_COMMON_CLK) += clk-exynos5-subcmu.o > obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos5433.o > obj-$(CONFIG_EXYNOS_AUDSS_CLK_CON) += clk-exynos-audss.o > obj-$(CONFIG_EXYNOS_CLKOUT) += clk-exynos-clkout.o > @@ -21,5 +21,5 @@ obj-$(CONFIG_S3C2410_COMMON_CLK)+= clk-s3c2410.o > obj-$(CONFIG_S3C2410_COMMON_DCLK)+= clk-s3c2410-dclk.o > obj-$(CONFIG_S3C2412_COMMON_CLK)+= clk-s3c2412.o > obj-$(CONFIG_S3C2443_COMMON_CLK)+= clk-s3c2443.o > -obj-$(CONFIG_ARCH_S3C64XX) += clk-s3c64xx.o > -obj-$(CONFIG_ARCH_S5PV210) += clk-s5pv210.o clk-s5pv210-audss.o > +obj-$(CONFIG_S3C64XX_COMMON_CLK) += clk-s3c64xx.o > +obj-$(CONFIG_S5PV210_COMMON_CLK) += clk-s5pv210.o clk-s5pv210-audss.o > diff --git a/include/linux/clk/samsung.h b/include/linux/clk/samsung.h > index 79097e365f7f..38b774001712 100644 > --- a/include/linux/clk/samsung.h > +++ b/include/linux/clk/samsung.h > @@ -10,7 +10,7 @@ > > struct device_node; > > -#ifdef CONFIG_ARCH_S3C64XX > +#ifdef CONFIG_S3C64XX_COMMON_CLK > void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f, > unsigned long xusbxti_f, bool s3c6400, > void __iomem *base); > @@ -19,7 +19,7 @@ static inline void s3c64xx_clk_init(struct device_node *np, > unsigned long xtal_f, > unsigned long xusbxti_f, > bool s3c6400, void __iomem *base) { } > -#endif /* CONFIG_ARCH_S3C64XX */ > +#endif /* CONFIG_S3C64XX_COMMON_CLK */ > > #ifdef CONFIG_S3C2410_COMMON_CLK > void s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f, > It looks good to me for compile testing. Thanks. Acked-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics