Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964827AbbLHKYJ (ORCPT ); Tue, 8 Dec 2015 05:24:09 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:54809 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932392AbbLHKYF (ORCPT ); Tue, 8 Dec 2015 05:24:05 -0500 From: Arnd Bergmann To: xuejiancheng Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, mturquette@baylibre.com, sboyd@codeaurora.org, xuwei5@hisilicon.com, haojian.zhuang@linaro.org, zhangfei.gao@linaro.org, bintian.wang@huawei.com, yanhaifeng@hisilicon.com, yanghongwei@hisilicon.com, suwenping@hisilicon.com, ml.yang@hisilicon.com, gaofei@hisilicon.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file Date: Tue, 08 Dec 2015 11:23:34 +0100 Message-ID: <1566981.5YV44UJUCQ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5666A6B5.6020101@huawei.com> References: <1449110364-23464-1-git-send-email-xuejiancheng@huawei.com> <2735980.8lIUhgbJzL@wuerfel> <5666A6B5.6020101@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:u7p8rrslm/VjXbD3nJntaslQC/sWUfpbB5VvMTmf1saMDZsTIv2 S109FvDuB0PNAG9XDs9cZ19veRAD4WsXGNFZdymARDDMk1YggrICgzqa7P1dsaz1yMVt0jt SINwpPMz/628ay2EXAkCzn8YZBxAUWOzvaqYTYGKSlfMdQvRemAYLyE90eJN8imHoubgOoX d8u3PtW4E6Bmxe7/2npsA== X-UI-Out-Filterresults: notjunk:1;V01:K0:QgkZmN1L7x8=:Z7/qymyLk8ptz/cPIYQp2N s9krWowBU7QXnAmFbu88zcp3na5TJfBOwXD/tLsrO0esRMWZallHAcWEW0edan37QGVfG2zmM /4cyXiVM1RUrQWKK4VxEjwMmfmeN9b3BWOrUJ+p8Cltis2LZF+IpYka6YSwLGThSjFXyi/N6h SkTREmCjaifvTky+pE4ryhsCyEaH+B6HjXfEZezYVnzUt9T80rzRVrHsxm3B+//2l5k+LW+cb os2TKaAkIC5OufULtQuVi2afP0tnWazr3fr4v6ww/DliT66MIGhAKcMk9uzoai8q4DnDNIca2 QvbWnCG75Rmsl3RMNGWI2O3d2x2CB7x9ChEJGcz52RENRlkPY8oc2P7yHEOywXw4ERl3/gc7G xzTv+YG9SKaj/5rDaebVYxW7rjCfu6YBEz3O598FqlI9AwvNke4f9M2Dd4oSopsfJn6XP5KHK quE3Q+tOvcO1DJ0JDy5Oh42BXA0SMbKtsZXnKqAmL96EiKuggnZvim82LArAGyaFHlEpEyF3u 7g6uaJFz4D1jMSqD7hSs6JQ9V0BMnvpF+pW01QNx7cqgguPpvQn2WqGk7mM4PR2PoySJOCmYp pSkiX9Md2+invZ09+xMR2KB/3NI2ZeFrmHi0H6uNG+74s0UkccdoEZwGfCmmn19o/0fNuimVk rolZ1egCwfP5qHz8Cv8x3geaVVMrugwcLnW7/1EfLFDfpNo9ItlFEp5y8FTyfRynMOruLD6jQ UUo7R211J6a0oDPr Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2740 Lines: 60 On Tuesday 08 December 2015 17:45:25 xuejiancheng wrote: > On 2015/12/7 17:36, Arnd Bergmann wrote: > > On Monday 07 December 2015 16:01:03 xuejiancheng wrote: > >> On 2015/12/4 18:56, Arnd Bergmann wrote: > >>> On Friday 04 December 2015 11:21:28 xuejiancheng wrote: > >>>> Hi Arnd, > >>>> > >>>> On 2015/12/3 17:44, Arnd Bergmann wrote: > >>>>> On Thursday 03 December 2015 10:39:24 Jiancheng Xue wrote: > >>>>>> +#ifndef __DTS_HI3519_CLOCK_H > >>>>>> +#define __DTS_HI3519_CLOCK_H > >>>>> > >>>>> Please try to avoid adding headers like this if you can at all. > >>>>> > >>>>> I might ask you to merge the header file in one merge window > >>>>> otherwise and submit the platform code one kernel later, as they > >>>>> tendn to cause us needless dependencies otherwise. > >>>>> > >>>> > >>>> Sorry. In v1, Rob suggested putting binding doc and header files in > >>>> a separate patch. The clock driver indeed depends on the header. > >>>> > >>>> I will put the header and the clock driver in a patch, and keep the > >>>> binding doc in another patch. > >>> > >>> Having split patches is better, I was really commenting on the fact > >>> that ideally you would not have a header file at all. If we merge > >>> the header through arm-soc, then you won't be able to merge the > >>> clk driver easily, and if you merge the header through the clk > >>> maintainer, I'm can't take your dts files. > >> > >> Thank you for your comments. Because the clocks in the crg module have > >> different types and random layouts. If this header file is removed, > >> the clock driver and the dts files will get very complicated. > >> > >> Could you help me acknowledge it if I put the header file and clock driver > >> in a patch? > >> > >> Could you give me some suggestions If I want to keep this header file? > > > > If this is another clock controller that has a random register layout, > > then adding the header file is the least problematic solution indeed. > > Is it OK if I put the header file and the clock driver in a patch? > > If it's not OK, could you tell me how should I separate the patches? It's ok to do it like this, but then I can't easily merge any DT changes based on the header file into the arm-soc tree in the same merge window. Staging out the .dts files by one merge window is the easiest solution here, otherwise you need to set up a shared branch with the headers changes and base both the clk driver and the dts branch on top of that and cannot rebase those patches. Arnd -- 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/