From patchwork Wed Oct 19 11:28:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9384299 X-Patchwork-Delegate: sboyd@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 9DAEC600CA for ; Wed, 19 Oct 2016 15:07:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 903CE282F5 for ; Wed, 19 Oct 2016 15:07:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84A31299EA; Wed, 19 Oct 2016 15:07:09 +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 769C3282F5 for ; Wed, 19 Oct 2016 15:07:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944358AbcJSPGr (ORCPT ); Wed, 19 Oct 2016 11:06:47 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42731 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944333AbcJSPGm (ORCPT ); Wed, 19 Oct 2016 11:06:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0A48961AF7; Wed, 19 Oct 2016 11:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476876537; bh=q9MoFiCRpz8o7FDPx1ORcpJi1n6CoXm3A9EDwfCVRc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QF4HKkT1QlcrYAYQWJvCk6SVrwUdEwyMcE+HEYB4xsSv7dO1abt2yh1cxR1dZqMpU 4nKJERfFergheCVjRg/tnDzLlBcisBD5KSUUx0c96mCwvs2Rc0Cpt0JNycwbyBZlGP 1R4Myh9J1aTH63AFg/8KDsBoLXW8H8PCy+MJdeoM= 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 08AA561AC3; Wed, 19 Oct 2016 11:28:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476876536; bh=q9MoFiCRpz8o7FDPx1ORcpJi1n6CoXm3A9EDwfCVRc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KB/vFxbXRHsmIV8ryFnGOnYbYBLg6Xvs2SlVA0BA2CiujGK+IGAaUvEgydZew3rKF x44TtmQj2wyytrSFN6xU/Ei2fRyQHNMG+exou15BzKmAcN2JmaNi8zgxyD0Rh1/tkG 9F6rcgSrbMothbBn+PzQZqSBjhuBQoSMObVrXup8= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 08AA561AC3 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 1/7] clk: qcom: Mark a few branch clocks with BRANCH_HALT_DELAY Date: Wed, 19 Oct 2016 16:58:37 +0530 Message-Id: <1476876523-27378-2-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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We seem to have a few branch clocks within gcc for msm8996 which do have a valid halt bit but can't be used to check branch enable/disable status as they rely on external clocks in some cases and in some others only toggle during an ongoing bus transaction. Mark these with BRANCH_HALT_DELAY, so we just add a delay instead. Signed-off-by: Rajendra Nayak --- drivers/clk/qcom/gcc-msm8996.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index fe03e6f..4e78924 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -1388,7 +1388,7 @@ enum { }; static struct clk_branch gcc_usb3_phy_pipe_clk = { - .halt_reg = 0x50004, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x50004, .enable_mask = BIT(0), @@ -2442,7 +2442,7 @@ enum { }; static struct clk_branch gcc_pcie_0_pipe_clk = { - .halt_reg = 0x6b018, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x6b018, .enable_mask = BIT(0), @@ -2517,7 +2517,7 @@ enum { }; static struct clk_branch gcc_pcie_1_pipe_clk = { - .halt_reg = 0x6d018, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x6d018, .enable_mask = BIT(0), @@ -2592,7 +2592,7 @@ enum { }; static struct clk_branch gcc_pcie_2_pipe_clk = { - .halt_reg = 0x6e018, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x6e018, .enable_mask = BIT(0), @@ -2721,7 +2721,7 @@ enum { }; static struct clk_branch gcc_ufs_tx_symbol_0_clk = { - .halt_reg = 0x75018, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x75018, .enable_mask = BIT(0), @@ -2736,7 +2736,7 @@ enum { }; static struct clk_branch gcc_ufs_rx_symbol_0_clk = { - .halt_reg = 0x7501c, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x7501c, .enable_mask = BIT(0), @@ -2751,7 +2751,7 @@ enum { }; static struct clk_branch gcc_ufs_rx_symbol_1_clk = { - .halt_reg = 0x75020, + .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x75020, .enable_mask = BIT(0),