Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752767AbbETL5C (ORCPT ); Wed, 20 May 2015 07:57:02 -0400 Received: from mail-by2on0127.outbound.protection.outlook.com ([207.46.100.127]:9670 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751418AbbETL47 (ORCPT ); Wed, 20 May 2015 07:56:59 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Date: Wed, 20 May 2015 19:42:56 +0800 From: Dong Aisheng To: Dong Aisheng CC: , , , , , , , , , Subject: Re: [PATCH v2 0/5] clk: support clocks which requires parent clock on during operation Message-ID: <20150520114253.GA6423@shlinux1.ap.freescale.net> References: <1431610143-21853-1-git-send-email-aisheng.dong@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1431610143-21853-1-git-send-email-aisheng.dong@freescale.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD039;1:8SdjcntypKZYhRDw3cmnkQIw8K54EXsIxWHAoj+YjMzyfnzCLaNPjUEfi+9RZ5stczrAtzFlpp6neyx9AaO2PMouOf5kMThxpSh6bLHG+5LkyZlHnnJOo1CqaniWK7NdEuRGGdO/Ay1GWBFVaeMvSPWeN9X7c/8MscrCv0xwXBL5Fo3xmiTMyZX/BrzrPo90THtGC1vPXp+iOg3/nZSyLkMJfvtZ4pcNEXPJsyiXHwqVLzO5Ex/TjOIi8uLaECR0hif1ZkslR1pZu1XvzNq/2DkaJ1oZDZpJTpSr033R/BTgdQSkQTYaWGRlZzz7qJF7TSMcwkpW/OhgQsQ31a/FTA== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(339900001)(199003)(54534003)(51704005)(189002)(24454002)(2950100001)(5001860100001)(5001830100001)(23726002)(85426001)(97736004)(107886002)(5001960100002)(4001540100001)(4001350100001)(81156007)(92566002)(64706001)(46102003)(189998001)(33656002)(47776003)(83506001)(104016003)(97756001)(69596002)(62966003)(77156002)(50466002)(87936001)(76176999)(19580395003)(50986999)(54356999)(46406003)(106466001)(110136002)(6806004)(77096005)(105606002)(68736005)(4001450100001)(4001430100001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0301MB1212;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1212;2:l8/Mk3kIjaPpbh78PxZzFCZlOR6YJxprvYpV2V6Mm9Jon5m/vj1/3ogKSnQJA2rL;2:6yzGf3ZVPucEBgHopfonwDYfk4KiQrYQres1o5TNDrzB2TnXTYt/mcuPEPCk1qHScYhr6evT+WcdF7yx6O1IFs4YmZxYMXhGTpT/j7FZXjasfAUuUKBHZrIPr9xtRCV2PHQZGcY1Gfd8sAdvumoRZFuaiTasthgO4CQ8xDEF8yui5bNTZoCJRDc6Tn1QgPvw+8ilDherOBtlZiR5h8axtMuEGhqhZ+5gZypWPeXtG0U=;6:nmaN7I+pbUjAb3s+wjFtauUctvCQgYIUzsLM7nhvfgY8SdyFzErbdk9JdCnM/Qm93JQSu1UV06Pzq5jO2c0mRDv/Qee1c+T+XxSIK5U6sM/phPJGKX4yVmyjyRbempk/C/YZax8yAume9U/N2xpBm41wCTwWpJ1zkGiOMYYd5i3OHI2kJne+Cw5CwU7ft6x3ZAPUOOEBV6crrBruQRq+sC9FYq63Yna3DIhzgqmxeE1Gfb1L4hOU3wvTzVIzKVYqSpsYETN5U/JJdu9NWmOdykmjNX+TObuWUAlMXxkypbPV3BLKiwu00dl/oLCuFv2BAY26u7x0Xaa1cABOGU5dlQ==;3:K70PG+I5Dyqlk2GMh9v9Ad1Cf0wSsc/MXaj3hrGSJrcjCJ6BVRs1+Z+vk3J4k9y55jcPwp+IsnVCeJZCyijTOulmD+u9fjeiYtzKnJd2FxQJhdPLv/numovoKsqv8hjaHEZ7FdweB3p/tCEpmkh9oASiHPwe/eCysYEfpZK36lTlHmLi0t++epghFkz8zWWX3BBagbgEkvWCAuxukYk7ScIr22QHls58pieY547R3vCW0qeqYeFhWRY9va0V682DkRndF8G0l+MWsGSFGvby1KpnHebARMNEz7JjRLxF8Hg= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1212; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR0301MB1212;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1212; X-Forefront-PRVS: 0582641F53 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB1212;9:ZVI21cm6xHPpGcMdoG6p+4NxJ4+sb4PmnKT0mrah?= =?us-ascii?Q?LugiuAZejhDeQ/hWBO/2EXvplhD62h1S1BToaHvMf69LgC8pZmRwfNj9fBkz?= =?us-ascii?Q?1ydrZN0Ejod3MmZaNBtepVuhkTWdoL/Ro5lx7vCf40UR/aAHhZYHKHzpuLoC?= =?us-ascii?Q?r0MrnoJrkeSKsq8GEnWTlX8tXG9ylVDzsQzE+9xp6ohw1E7vzXUYo7dUq3SG?= =?us-ascii?Q?NVUgK6fiekd2R2ld0aypcJrktVKuBuZ2OU3ecrmJvye9EzphBv4XqqAlKsNj?= =?us-ascii?Q?oBNz8eRBVyUlLQpDNj3TNS6vh8mdIfGlrAZtko6goFQVSO54jGZ0uzKR4mJS?= =?us-ascii?Q?J22CMUXV0GbeSkQfiao0/EKTE0+fDa8eavx9a+lsXJn2y3dx2d9IHDIdKzR3?= =?us-ascii?Q?zOHbSmZVv8jBbt4Gpw4wwQvGttv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h35yQnuCQ4jNPjk9KotSdS6hZFXxI6zkhWgX0DiUi2Ppf2FTnPGAiHMTbo68nDd2NCUb/UTNF/Gpe5AA==;10:3gkSJiuhYK5PR/9LyJtFLveaLmScUWMOthyTJwjsDlEtY+8NRlFZ6MA/dZbfsl0gBeRAIfU7QOCyVAcPEvNaT+5wt5wSmoK4uQ6r/vuEkXM=;6:yptH3zwplOuSJcyi00rATq5nDYnjWl+XEd2Ts9imBMLCxjWu8xHOOv6LwJbBJopJ X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2015 11:56:56.0771 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1212 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2194 Lines: 57 Hi Stephen, On Thu, May 14, 2015 at 09:28:58PM +0800, Dong Aisheng wrote: > This patch series adds support in clock framework for clocks which operations > requires its parent clock is on. > > Such clock type is initially met on Freescale i.MX7D platform that all clocks > operations, including enable/disable, rate change and re-parent, requires its > parent clock on. No sure if any other SoC has the similar clock type. > > Current clock core can not support such type of clock well. > > This patch introduce a new flag CLK_SET_PARENT_ON to handle this special case > in clock core that enable its parent clock firstly for each operation and disable > it later after operation complete. > > The most special case is for set_parent() operation which requires both parent, > old one and new one, to be enabled at the same time during the operation. > > The patch series is based on for-next branch of Michael's git: > git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git > > Change Log v1->v2: > Mainly addressed Stephen Boyd's comments > * remove dupliciated code with __clk_set_parent_after > * introduce more clk_core_x APIs for core easily use > * move clk_disable_unused code position > * use clk_core_x API to make code more clean and easily read > > Dong Aisheng (5): > clk: remove duplicated code with __clk_set_parent_after > clk: introduce clk_core_enable_lock and clk_core_disable_lock > functions > clk: move clk_disable_unused after clk_core_disable_unprepare function > clk: core: add CLK_OPS_PARENT_ON flags to support clocks require > parent on > clk: core: add CLK_OPS_PARENT_ON flags to support clocks require > parent on > Can you help review this updated series? > drivers/clk/clk.c | 338 +++++++++++++++++++++++++------------------ > include/linux/clk-provider.h | 5 + > 2 files changed, 200 insertions(+), 143 deletions(-) > > -- > 1.9.1 > Regards Dong Aisheng -- 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/