Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbbBYKNY (ORCPT ); Wed, 25 Feb 2015 05:13:24 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:47254 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbbBYKNV (ORCPT ); Wed, 25 Feb 2015 05:13:21 -0500 X-AuditID: cbfee68f-f791c6d000004834-c1-54eda039f299 Date: Wed, 25 Feb 2015 19:13:12 +0900 From: Inha Song To: Tomasz Figa Cc: "linux-samsung-soc@vger.kernel.org" , linux-kernel , linux-arm-kernel , Kukjin Kim , Stephen Boyd , Michael Turquette , Sylwester Nawrocki , Chanwoo Choi Subject: Re: [PATCH] clk: samsung: Add CLKOUT driver support for Exynos3250 SoC. Message-id: <20150225191312.303ba10d@songinha-Samsung-DeskTop-System> In-reply-to: References: <1424769751-4633-1-git-send-email-ideal.song@samsung.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsWyRsSkQNdqwdsQgx/HmS2uf3nOatH/+DWz xabH11gtLu+aw2Yx4/w+JounEy6yWRx+085q8eNMN4vFql1/GB04PS739TJ57Jx1l91j06pO No871/aweWxeUu/Rt2UVo8fnTXIB7FFcNimpOZllqUX6dglcGdtfPGYt6BKp2HxmC1sDY59A FyMnh4SAicTuu+tZIGwxiQv31rN1MXJxCAksZZSYdXMOO0zR/ZON7BCJ6YwSp3v/QFX1M0m0 /H7CClLFIqAqcf/jL2YQm01AQ+L7581gtoiAusS3Kf1gk5gF/jNJ3J7tBWILCwRIXH1/FSjO wcEr4CpxeL0hSJhTIFiiY+sUVoj5PYwSj48eY4K4wkZi9c51YDN5BQQlfky+xwIxU0ti87Ym VghbXmLzmrfMIM0SAi/ZJS49fM0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QrwpiZVVqUX5 8UWlOanFhxhNgaExkVlKNDkfmJjySuINjU3MjCyNzA0tjIzNlcR5lezbQoQE0hNLUrNTUwtS i2D6mDg4pRoY5Xq1Ajn2Nr/ZmvfqGGN5WU31h/mnShqrD1mYbf4aPlVzkc/2KO6mlhw2e+W9 bir7dJlTexReiLlX9NwyZy1LmjRl9bNlWv1GGiGRv/R9AniDHjD82nyi/WCCcFfPHpODt84/ 2mRcyb2uzPDk6+gX0247f7Hr4kha3FxuUDNf9GYtL9dhHyElluKMREMt5qLiRAC+H97BFAMA AA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2748 Lines: 72 Hi, Tomasz, Thanks for you comment :) On Wed, 25 Feb 2015 09:54:02 +0900 Tomasz Figa wrote: > Hi Inha, > > Thanks for the patch. Please see my comments inline. > > 2015-02-24 18:22 GMT+09:00 Inha Song : > > This patch add CLKOUT driver support for Exynos3250 SoC. > > Could you please add a little more information? I know that it might > be pretty obvious to people familiar with this driver and/or hardware, > but it might be a good idea to explicitly say that the CLKOUT > controller is compatible with Exynos4, so only a new compatible string > is added. > > On the other hand, do you really need to add a new compatible string > if an existing one can be reused? The reason why the DT property is > called "compatible" is to be able to use the same compatible strings > on different devices, because they are compatible, even though the > string might have its name after only one of them. If there is some > additional reason to add a new compatible string, please write this in > commit message. In in PMU document(Document/devicetree/bindgins/arm/samsung/pmu.txt), "samsung,exynos3250-pmu" compatible string had been added. So I add this compatible in driver. > > > > > Signed-off-by: Inha Song > > --- > > drivers/clk/samsung/clk-exynos-clkout.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/clk/samsung/clk-exynos-clkout.c b/drivers/clk/samsung/clk-exynos-clkout.c > > index 3a7cb25..1c02e73 100644 > > --- a/drivers/clk/samsung/clk-exynos-clkout.c > > +++ b/drivers/clk/samsung/clk-exynos-clkout.c > > @@ -142,6 +142,8 @@ CLK_OF_DECLARE(exynos4212_clkout, "samsung,exynos4212-pmu", > > exynos4_clkout_init); > > CLK_OF_DECLARE(exynos4412_clkout, "samsung,exynos4412-pmu", > > exynos4_clkout_init); > > +CLK_OF_DECLARE(exynos3250_clkout, "samsung,exynos3250-pmu", > > + exynos4_clkout_init); > > Are you sure that the PMU DEBUG register on Exynos3250 is indeed > compatible with Exynos4 and not with newer SoCs? AFAIR, the only > difference was the number of bits (4 on Exynos4 and 5 on Exynos5?) of > the main mux. Exynos3250 PMU_DEBUG register is same with Exynos4. So I just use exynos4_clkout_init function. But, on second thought, It looks good to add exynos3_clkout_init function for Exynos3 SoC even though it's the same with exynos4_clkout_init. what is your opinion? Best Regards, Inha Song. > > Best regards, > Tomasz -- 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/