Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7213835imu; Mon, 3 Dec 2018 09:20:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/U3mSa/RaSxklqCXySxtbDMYNB10egeE53moO0dJ8xp5Ue98R9U473I/htVAqtYXEsnWw2T X-Received: by 2002:aa7:8552:: with SMTP id y18mr17008864pfn.83.1543857627318; Mon, 03 Dec 2018 09:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543857627; cv=none; d=google.com; s=arc-20160816; b=gnjGr91+ySH0sJK58rv5Ta2F4f5ZBkKHNGxNigIddxoM0s81yMg6xx8SDgkRxrw+UP WKJ9P+oMRtJjWB02tAPF6CCw5lkqC/uDrPWcY+1NXnDb3KYs6OVTNepB0cB1rPvCaHjo xY+HbbiLYrD5utH9OMLOXl7DgFiwe9SyjoZmBE3NIv3VqrWvJQMEjCRs5BLEqC932ICR EAKRmJ69F/MBikWippbtMj19HvGO4GLSoMOG99Aw4qHAB/zzrmLvXsbPdFYaWURXf+du i9nwhAQXrArG+22I4O5vDv26ryrUaRqv8sM2zd1NCBmR/aPQ0eNAaPZmNfvOHTCtWUfK PIIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=kJqtnUKqHHBkoOULMBzakQJkqRtHhrWS3kwVY2MCp8I=; b=LNmtAUaSLBuj/T+OOurEa4RGQzhsaAkm37EWJe2gSiuhhJNGQzns3cz9y7DoX8W+ms 2jZfT1cUidN+aaweAZVe31ykczKW7T/Gzjwr2JtyWi7RZPX8MGwrc+hdO51/KWfQLJfz zZeFXGO9xjnmTzhCFl4t35AIGXrf1YYJNnlbABsf9ufzjgrVA/3OI3pfQhVn6kGRVXNU tx6lInIdR0Igwsg6mtoN2MalP2sXkF7ibut5TP1qFahtFRW0/4KG7D1+PXsLvIzcyb6j tn/Ls5utajPoBoYLlrbQbGYzB2NVBGcO6zuRjbs9Tb1spwASduld7oetaVZkRMNRpMI/ +3ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="K927/mlN"; dkim=pass header.i=@codeaurora.org header.s=default header.b=L37zlXnM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si12980340pgi.391.2018.12.03.09.20.03; Mon, 03 Dec 2018 09:20:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="K927/mlN"; dkim=pass header.i=@codeaurora.org header.s=default header.b=L37zlXnM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726927AbeLCRT0 (ORCPT + 99 others); Mon, 3 Dec 2018 12:19:26 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:42860 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbeLCRT0 (ORCPT ); Mon, 3 Dec 2018 12:19:26 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 86F5060AD8; Mon, 3 Dec 2018 17:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543857562; bh=i+IV+KeY4R9DjS2FoY3Q99TMCK4i/uzEOFYxmbAAwtE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=K927/mlNns7R2Zty16et40tCpGvO7AXfZHC/UZwMsGV7FRdmw3ScDQVWzS/UFAPOT ixtS/8e6u3gvXZl5z50iGpMJx6RLp99gjIJ5Ix++DHR765yajxQx/praVlv3sC0JFZ 0EKBSEPXa+aPACWJ5KR/xMGs5Xh/hxQoqZv8GEro= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.81] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0E29760159; Mon, 3 Dec 2018 17:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543857561; bh=i+IV+KeY4R9DjS2FoY3Q99TMCK4i/uzEOFYxmbAAwtE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=L37zlXnMFCk1dnGREm5pOs+bL8pqTGzM1u8AfFHhRS6Zx4/tn4XFlu46dJL84eDUe EC1c7UFQDJcqleQeaDOF5cqThSn9+oKeB+mGg7eXt3BvCH266Tsy5I78BNWMBzxRtr nH2IqBMljGeR+9/IAoI9wygUt8uTWxGwiCEZ5yEw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0E29760159 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org Subject: Re: [PATCH] clk: qcom: Fix MSM8998 resets To: Stephen Boyd , Bjorn Andersson Cc: andy.gross@linaro.org, david.brown@linaro.org, mturquette@baylibre.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <1543851298-32320-1-git-send-email-jhugo@codeaurora.org> <20181203155538.GQ2225@minitux> <711fb66a-a408-08e2-c0c2-6addf1510937@codeaurora.org> <154385654317.88331.9077579060059188717@swboyd.mtv.corp.google.com> From: Jeffrey Hugo Message-ID: Date: Mon, 3 Dec 2018 10:19:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <154385654317.88331.9077579060059188717@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/3/2018 10:02 AM, Stephen Boyd wrote: > Quoting Jeffrey Hugo (2018-12-03 08:08:46) >> On 12/3/2018 8:55 AM, Bjorn Andersson wrote: >>> On Mon 03 Dec 07:34 PST 2018, Jeffrey Hugo wrote: >>> >>>> The offsets for the defined BCR reset registers does not match the hardware >>>> documentation. Update the values to match the hardware documentation. >>>> >>> >>> Sorry for not spotting this before. >>> >>>> Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver) >>>> Signed-off-by: Jeffrey Hugo >>>> --- >>>> drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- >>>> 1 file changed, 19 insertions(+), 19 deletions(-) >>>> >>>> diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c >>>> index 9f0ae40..01cc555 100644 >>>> --- a/drivers/clk/qcom/gcc-msm8998.c >>>> +++ b/drivers/clk/qcom/gcc-msm8998.c >>>> @@ -2742,25 +2742,25 @@ enum { >>>> }; >>>> >>>> static const struct qcom_reset_map gcc_msm8998_resets[] = { >>>> - [GCC_BLSP1_QUP1_BCR] = { 0x102400 }, >>>> - [GCC_BLSP1_QUP2_BCR] = { 0x110592 }, >>>> - [GCC_BLSP1_QUP3_BCR] = { 0x118784 }, >>>> - [GCC_BLSP1_QUP4_BCR] = { 0x126976 }, >>>> - [GCC_BLSP1_QUP5_BCR] = { 0x135168 }, >>>> - [GCC_BLSP1_QUP6_BCR] = { 0x143360 }, >>>> - [GCC_BLSP2_QUP1_BCR] = { 0x155648 }, >>>> - [GCC_BLSP2_QUP2_BCR] = { 0x163840 }, >>>> - [GCC_BLSP2_QUP3_BCR] = { 0x172032 }, >>>> - [GCC_BLSP2_QUP4_BCR] = { 0x180224 }, >>>> - [GCC_BLSP2_QUP5_BCR] = { 0x188416 }, >>>> - [GCC_BLSP2_QUP6_BCR] = { 0x196608 }, >>>> - [GCC_PCIE_0_BCR] = { 0x438272 }, >>>> - [GCC_PDM_BCR] = { 0x208896 }, >>>> - [GCC_SDCC2_BCR] = { 0x81920 }, >>>> - [GCC_SDCC4_BCR] = { 0x90112 }, >>>> - [GCC_TSIF_BCR] = { 0x221184 }, >>>> - [GCC_UFS_BCR] = { 0x479232 }, >>>> - [GCC_USB_30_BCR] = { 0x61440 }, >>>> + [GCC_BLSP1_QUP1_BCR] = { 0x19000 }, >>>> + [GCC_BLSP1_QUP2_BCR] = { 0x1b000 }, >>>> + [GCC_BLSP1_QUP3_BCR] = { 0x1d000 }, >>>> + [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, >>>> + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, >>>> + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, >>>> + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, >>>> + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, >>>> + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, >>>> + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, >>>> + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, >>>> + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, >>>> + [GCC_PCIE_0_BCR] = { 0x6c01c }, >>> >>> I find GCC_PCIE_0_BCR at 0x6b000 and then GCC_PCIE_0_PHY_BCR at 0x6c01c. >> >> Doh. Thanks for the double check. GCC_PCIE_0_PHY_BCR is not defined in >> include/dt-bindings/clock/qcom,gcc-msm8998.h so I plan to leave it out >> until later. >> >> Expect a v2 shortly. > > Will you add GCC_PCIE0_PHY_BCR shortly so we don't have to add it later > on when it becomes critical? > My plan was to let it sit until it becomes necessary. I'm working on USB and found that GCC_QUSB2PHY_PRIM_BCR, GCC_USB3_PHY_BCR, and GCC_USB3PHY_PHY_BCR are also missing, so I suspect there are others. Would you prefer I send a follow up that adds the PCIE phy and the USB resets? -- Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.