From patchwork Wed Oct 19 11:28:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9384335 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: 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 8E46B607D0 for ; Wed, 19 Oct 2016 15:10:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80498299E0 for ; Wed, 19 Oct 2016 15:10:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 751C929A15; Wed, 19 Oct 2016 15:10:13 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73248299E0 for ; Wed, 19 Oct 2016 15:10:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942760AbcJSPJ0 (ORCPT ); Wed, 19 Oct 2016 11:09:26 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42690 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944155AbcJSPGk (ORCPT ); Wed, 19 Oct 2016 11:06:40 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 17E1461B11; Wed, 19 Oct 2016 11:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476876550; bh=EF2vLP7+my8wKttlekQ1xG9DE/7sPRG4fOw2HnX7VJY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ijjEN6xYKd7WlC4sosgH2jNBKZ4x6k90lDp4ygfxht05Kh2SfpsQ+HMMkT2gJP7RG //XuXa3xdH8VGoqe2mutsFTYNENJa/RGNiS1MZSIPS77XDz2usTsIgN05eyAlbDASW hpaCZNofFxnDtIPfo04ROmtsi78FlqheyaiD1vdg= Received: from blr-ubuntu-34.ap.qualcomm.com (unknown [202.46.23.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1963061B03; Wed, 19 Oct 2016 11:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476876549; bh=EF2vLP7+my8wKttlekQ1xG9DE/7sPRG4fOw2HnX7VJY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZC6KhdNN73JNhYiMuVSeSuLft2AqIquee8NBZvXvmVkCKgikRgq81DyN4Fk7b7B1E /BPZi4Hpz55nkeCsWE4sckVnRBRYuqF4JpyMq1SRthCuavZBNHwY8OSADRDhdFomYI d5NRhdBc188FV+yqpb7a6DpCtcLy378OyejWmbOs= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 1963061B03 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=rnayak@codeaurora.org From: Rajendra Nayak To: sboyd@codeaurora.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, tdas@codeaurora.org, Rajendra Nayak Subject: [PATCH 5/7] clk: qcom: Mark a few clocks as BRANCH_VOTED Date: Wed, 19 Oct 2016 16:58:41 +0530 Message-Id: <1476876523-27378-6-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1476876523-27378-1-git-send-email-rnayak@codeaurora.org> References: <1476876523-27378-1-git-send-email-rnayak@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mark some of the bimc and smmu clocks with BRANCH_VOTED so we just add a delay on disable without waiting on the halt status. Signed-off-by: Rajendra Nayak --- drivers/clk/qcom/gcc-msm8996.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index f6124cf..2c01b62 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -1341,6 +1341,7 @@ enum { static struct clk_branch gcc_mmss_bimc_gfx_clk = { .halt_reg = 0x9010, + .halt_check = BRANCH_VOTED, .clkr = { .enable_reg = 0x9010, .enable_mask = BIT(0), @@ -2897,6 +2898,7 @@ enum { static struct clk_branch gcc_smmu_aggre0_axi_clk = { .halt_reg = 0x81014, + .halt_check = BRANCH_VOTED, .clkr = { .enable_reg = 0x81014, .enable_mask = BIT(0), @@ -2912,6 +2914,7 @@ enum { static struct clk_branch gcc_smmu_aggre0_ahb_clk = { .halt_reg = 0x81018, + .halt_check = BRANCH_VOTED, .clkr = { .enable_reg = 0x81018, .enable_mask = BIT(0),