Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752817AbbEDI1u (ORCPT ); Mon, 4 May 2015 04:27:50 -0400 Received: from mail-by2on0112.outbound.protection.outlook.com ([207.46.100.112]:19376 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752233AbbEDI1l (ORCPT ); Mon, 4 May 2015 04:27:41 -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: Mon, 4 May 2015 16:15:24 +0800 From: Dong Aisheng To: Stephen Boyd CC: Dong Aisheng , , , , , , , , , Subject: Re: [PATCH RFC v1 1/5] clk: change clk_core name of __clk_set_parent_after Message-ID: <20150504081518.GA4082@shlinux1.ap.freescale.net> References: <1429107999-24413-1-git-send-email-aisheng.dong@freescale.com> <1429107999-24413-2-git-send-email-aisheng.dong@freescale.com> <55427D25.3040904@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <55427D25.3040904@codeaurora.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(339900001)(479174004)(51704005)(189002)(199003)(24454002)(19580395003)(97756001)(19580405001)(46102003)(47776003)(87936001)(6806004)(106466001)(46406003)(50986999)(33656002)(50466002)(54356999)(85426001)(76176999)(104016003)(77096005)(23726002)(105606002)(2950100001)(62966003)(110136002)(92566002)(5001960100002)(5001920100001)(77156002)(107886002)(4001430100001)(217873001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR03MB1416;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1416; 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:BN3PR03MB1416;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1416; X-Forefront-PRVS: 05669A7924 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2015 08:27:38.3760 (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: BN3PR03MB1416 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1994 Lines: 58 On Thu, Apr 30, 2015 at 12:06:13PM -0700, Stephen Boyd wrote: > On 04/15/15 07:26, Dong Aisheng wrote: > > To align with __clk_set_parent_before and some others functions, > > change the host clk name to 'clk' instead of 'core'. > > > > Cc: Mike Turquette > > Cc: Stephen Boyd > > Signed-off-by: Dong Aisheng > > --- > > No thanks. We should go and rename all clk_core pointers in this file > from clk to core now that we're done splitting the two. I'll go do that now. > Understand. Thanks for this information. Regards Dong Aisheng > > drivers/clk/clk.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c > > index 459ce9d..cc56ba2 100644 > > --- a/drivers/clk/clk.c > > +++ b/drivers/clk/clk.c > > @@ -1487,7 +1487,7 @@ static struct clk_core *__clk_set_parent_before(struct clk_core *clk, > > return old_parent; > > } > > > > -static void __clk_set_parent_after(struct clk_core *core, > > +static void __clk_set_parent_after(struct clk_core *clk, > > struct clk_core *parent, > > struct clk_core *old_parent) > > { > > @@ -1495,8 +1495,8 @@ static void __clk_set_parent_after(struct clk_core *core, > > * Finish the migration of prepare state and undo the changes done > > * for preventing a race with clk_enable(). > > */ > > - if (core->prepare_count) { > > - clk_core_disable(core); > > + if (clk->prepare_count) { > > + clk_core_disable(clk); > > clk_core_disable(old_parent); > > clk_core_unprepare(old_parent); > > } > > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > a Linux Foundation Collaborative Project > -- 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/