All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeffrey Hugo <jhugo@codeaurora.org>
To: Stephen Boyd <sboyd@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>
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
Subject: Re: [PATCH] clk: qcom: Fix MSM8998 resets
Date: Mon, 3 Dec 2018 10:19:20 -0700	[thread overview]
Message-ID: <bf2c5a96-6a29-e89b-4b16-8aaab516a7b5@codeaurora.org> (raw)
In-Reply-To: <154385654317.88331.9077579060059188717@swboyd.mtv.corp.google.com>

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 <jhugo@codeaurora.org>
>>>> ---
>>>>    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.

  reply	other threads:[~2018-12-03 17:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03 15:34 [PATCH] clk: qcom: Fix MSM8998 resets Jeffrey Hugo
2018-12-03 15:55 ` Bjorn Andersson
2018-12-03 16:08   ` Jeffrey Hugo
2018-12-03 17:02     ` Stephen Boyd
2018-12-03 17:19       ` Jeffrey Hugo [this message]
2018-12-03 17:52         ` Stephen Boyd
2018-12-03 17:58           ` Jeffrey Hugo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf2c5a96-6a29-e89b-4b16-8aaab516a7b5@codeaurora.org \
    --to=jhugo@codeaurora.org \
    --cc=andy.gross@linaro.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=david.brown@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.