Message ID | 20171222034205.GD24403@b29396-OptiPlex-7040 (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BFCF460390 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 22 Dec 2017 03:42:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7CB529BE1 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 22 Dec 2017 03:42:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C65F29EBC; Fri, 22 Dec 2017 03:42:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 926CD29BE1 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 22 Dec 2017 03:42:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1YZojxlCPDOUgAJIDU/8aApb+Y7/tdJKUOm28ZzhB14=; b=VxGpe06/PaSPxq w8xv8v+1Q7XdfdTtGNB02v3FhEygvyI8iC8a/098sU7VoQtCP1w0+03xG5he2LQ4s7KRhXZKvYf2u QT4lmQ+7BYHbzeDRJcqkYOxcKIUvyORj+iiUTxaJCRMPRogotsIwrgJkTNyVurlqkQI6lOpLC+wge tXX+5xOkxrlVfs8sx12gfClEaNeX+DHMS7rvpSRfPyDPKhUx9CFRJHncjLY7oqFJXK7o4kVKDsJVY BYX1o0GYOilB/RuFvHkXveIDnPKRce6BpGXaB3gyzpGwNk9GO5cjQYNWu08z8PiqogQouszFdkK0B 95bQFXHp/BRde77H9C3w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eSEED-0003eC-53; Fri, 22 Dec 2017 03:42:33 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eSEE7-0003c3-BT for linux-arm-kernel@lists.infradead.org; Fri, 22 Dec 2017 03:42:30 +0000 Received: by mail-pl0-x241.google.com with SMTP id o2so12229169plk.12 for <linux-arm-kernel@lists.infradead.org>; Thu, 21 Dec 2017 19:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=actSECyW90MBkhGaP/l9D/NjPHYZv5cjgDrJPugZtDY=; b=lrcI46C3NTB4A8JKKlbh+xJA1peVlp/ycKldzQGPJdT3QW9IecG9BcbMTvZUeIYE// kCQ8YtM5AOQBCxIVVY5lJA9sfttIWW1QXj2shqgRLD+E1pqp41dYmMqQZIAdqYZOt88e 12cLH+g56xQeJVDbpwjs2Qb91QAaht2Mxuj5P1CAMxHkcpW7RSCnX9N7/TLt+Qd/Xw6s Id4oSaYKs0ej11+GG2NU+TIZ1vuhFsyH2KIzGXXSeag4aX5ki+8yuZDdoOCrqQD2FI8c 8IFyijQ51XGaVxP6AGTG3DkdIp6VrCufUr7Zrihcyq+hDyu09txLVPLwRvYIlEhVIsrX g1vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=actSECyW90MBkhGaP/l9D/NjPHYZv5cjgDrJPugZtDY=; b=ok1rowSWTQ0nI3UsyTre8y2tfdaqi0nyxZzCrQBCpT4Rq6WE62PI7eiuzC9ORB7mk0 FzcAMPIc9A+Lyxjq3oElm4DWX/nP07tR4dJvvX52aqh8ZnU4asZolcpB2ohQNqakUgbg bsvlV1sEJ2yFBMlNx1Wsm9FRtZVXI3OA4CY9sLIvfhoGGGGqA287HStcFriYNmpoFbS8 oOeTzoOoCNmxaDonlBvEKJyyERRGpveX4pDnj3SdajNcEMh6kUFZ5fx1X7u+FW4AtMN5 RnG7bFNieeyK9MfdSxRReD/1KqfgupWe0QJZbvUJUL+khwPVBZxUOCb8RdpNBGZoAQNk NPcg== X-Gm-Message-State: AKGB3mJeSDoyMeFC8bg+0VAbj7CK/u6oV739o2X5BxaEatFhIJM+ezyx 78HN67KlH0WNqYmA6NBLCE980Q== X-Google-Smtp-Source: ACJfBosBWYifXATgz7fcWjhJUL8HrWS7+0H9OPJ8p7JsGILORnAAh4slM+rnFBUjBlt/vNiBDyg+0A== X-Received: by 10.84.137.169 with SMTP id 38mr12589223pln.36.1513914136509; Thu, 21 Dec 2017 19:42:16 -0800 (PST) Received: from b29396-OptiPlex-7040 (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id t14sm34124594pgr.37.2017.12.21.19.42.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 19:42:15 -0800 (PST) Date: Fri, 22 Dec 2017 11:42:05 +0800 From: Dong Aisheng <dongas86@gmail.com> To: Stephen Boyd <sboyd@codeaurora.org> Subject: Re: [PATCH V2 01/10] clk: clk-divider: add CLK_DIVIDER_ZERO_GATE clk support Message-ID: <20171222034205.GD24403@b29396-OptiPlex-7040> References: <1499946435-7177-1-git-send-email-aisheng.dong@nxp.com> <1499946435-7177-2-git-send-email-aisheng.dong@nxp.com> <20171102075039.GU30645@codeaurora.org> <20171220142757.GB30461@b29396-OptiPlex-7040> <20171222012401.GB7997@codeaurora.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171222012401.GB7997@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171221_194227_445127_8888D78E X-CRM114-Status: GOOD ( 38.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Dong Aisheng <aisheng.dong@nxp.com>, ping.bai@nxp.com, Anson.Huang@nxp.com, mturquette@baylibre.com, linux-kernel@vger.kernel.org, shawnguo@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 8a1860a..ce5fa96 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -191,6 +191,7 @@ static bool clk_core_is_prepared(struct clk_core *core) static bool clk_core_is_enabled(struct clk_core *core) { + unsigned long flags; bool ret = false; /* @@ -218,7 +219,10 @@ static bool clk_core_is_enabled(struct clk_core *core) } } + flags = clk_enable_lock(); ret = core->ops->is_enabled(core->hw); + clk_enable_unlock(flags); + done: clk_pm_runtime_put(core);