Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7249830imu; Mon, 3 Dec 2018 09:53:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/UzCCGc61rMJV8VRPt0g4OeqDesZ1zEy/EmMcNkGBNtzT+ts0+VVGur+w2RC4pPxVXp7Vwb X-Received: by 2002:a62:a99:: with SMTP id 25mr16561633pfk.121.1543859608612; Mon, 03 Dec 2018 09:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543859608; cv=none; d=google.com; s=arc-20160816; b=pg8gxdBKu2qrvyXTCDovGAghwH+rGiaEreYC4zGkwVwp23oF8O9hXxU1aC5/Uz7k/i VgrlzQ9jYte2HXkkuxqBKq9ZIJqC+cPZl2sQskYOLyECL4H1nJXCC5D7k3sYlctdEk5Z n+Usy/no7BWG2/UWBwK4BsF8qzJekNFtpX9Ywxg9LbZczjly9bVqPpbJ1MNGK427bV2f eIpbCTukOkzjJWZIQuMY8I4nPbMdUZc4yAm3kP+yPVSQL/y8vJwcZeFTMtvOIxmaqtcU lWzGwvWBShe3xBmK/CLWSATinVtPtBhichJ9cd3tbxjPdrYLjUcNXF3MnI4joOv2TiY0 HXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=bDncVJ7fSUonuhcetajX7nBiuMVQAh0WULreL2iYp/E=; b=VnvdT3S6d3lIDytGeibp1meVSztc/7q+vrKuNf7+dM3gxeL0Ptte0m57v6rV/P/wbB XXp8wD+zpeumpITJa8eMUowpqTrLgy/icPJ2Hazf5+2LWjXJeh5sJ+Q/HaGcHWA5ckO7 /8LJOrHdbuyJXl2QAYGuZXWhgRFJYP+nL9VcyxlOokfO6mOHVq+uNGmVwsp9TuurYkMG Em4aD4PHnWr3zXUKgB1afaIc76usWQpgUumr933YnUL+rG0X2mJIiLrDfGsuVnUTvcZo yC7KnSTGpEcgA5cMxXE4phwKYvN8P1ISRbvgfXZ+mYuFoL6Lp2FPkh0PkiRbuYhhXJIo aflg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Px80hsID; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi6si14591705plb.279.2018.12.03.09.53.12; Mon, 03 Dec 2018 09:53:28 -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=@kernel.org header.s=default header.b=Px80hsID; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbeLCRwk (ORCPT + 99 others); Mon, 3 Dec 2018 12:52:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:37352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbeLCRwk (ORCPT ); Mon, 3 Dec 2018 12:52:40 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ED6F220848; Mon, 3 Dec 2018 17:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543859556; bh=+gjCBg6qCkIqS/5+hzcmL0FLKRJl2ioFwUBH6WbHMSY=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=Px80hsIDCole+ek1tecEd1/5Ty32EPG7XAUkkRRSqLNWn3H7Hz0qltVWfGIMCVfpB fYSmh52/zBVf2AcQfQ7pgKw3RzFz+deggsLxrXxcZ2je0k174lC0q9FuMn0IMiwpQd l2T5VTktzi/93rBbtz4FWNgA31zk3bIhMfZSK6YA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Bjorn Andersson , Jeffrey Hugo From: Stephen Boyd In-Reply-To: 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> Message-ID: <154385955525.88331.5713343841692637945@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH] clk: qcom: Fix MSM8998 resets Date: Mon, 03 Dec 2018 09:52:35 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jeffrey Hugo (2018-12-03 09:19:20) > 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 h= ardware > >>>> documentation. Update the values to match the hardware documentatio= n. > >>>> > >>> > >>> Sorry for not spotting this before. > >>> > >>>> Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GC= C) 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-m= sm8998.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[] =3D { > >>>> - [GCC_BLSP1_QUP1_BCR] =3D { 0x102400 }, > >>>> - [GCC_BLSP1_QUP2_BCR] =3D { 0x110592 }, > >>>> - [GCC_BLSP1_QUP3_BCR] =3D { 0x118784 }, > >>>> - [GCC_BLSP1_QUP4_BCR] =3D { 0x126976 }, > >>>> - [GCC_BLSP1_QUP5_BCR] =3D { 0x135168 }, > >>>> - [GCC_BLSP1_QUP6_BCR] =3D { 0x143360 }, > >>>> - [GCC_BLSP2_QUP1_BCR] =3D { 0x155648 }, > >>>> - [GCC_BLSP2_QUP2_BCR] =3D { 0x163840 }, > >>>> - [GCC_BLSP2_QUP3_BCR] =3D { 0x172032 }, > >>>> - [GCC_BLSP2_QUP4_BCR] =3D { 0x180224 }, > >>>> - [GCC_BLSP2_QUP5_BCR] =3D { 0x188416 }, > >>>> - [GCC_BLSP2_QUP6_BCR] =3D { 0x196608 }, > >>>> - [GCC_PCIE_0_BCR] =3D { 0x438272 }, > >>>> - [GCC_PDM_BCR] =3D { 0x208896 }, > >>>> - [GCC_SDCC2_BCR] =3D { 0x81920 }, > >>>> - [GCC_SDCC4_BCR] =3D { 0x90112 }, > >>>> - [GCC_TSIF_BCR] =3D { 0x221184 }, > >>>> - [GCC_UFS_BCR] =3D { 0x479232 }, > >>>> - [GCC_USB_30_BCR] =3D { 0x61440 }, > >>>> + [GCC_BLSP1_QUP1_BCR] =3D { 0x19000 }, > >>>> + [GCC_BLSP1_QUP2_BCR] =3D { 0x1b000 }, > >>>> + [GCC_BLSP1_QUP3_BCR] =3D { 0x1d000 }, > >>>> + [GCC_BLSP1_QUP4_BCR] =3D { 0x1f000 }, > >>>> + [GCC_BLSP1_QUP5_BCR] =3D { 0x21000 }, > >>>> + [GCC_BLSP1_QUP6_BCR] =3D { 0x23000 }, > >>>> + [GCC_BLSP2_QUP1_BCR] =3D { 0x26000 }, > >>>> + [GCC_BLSP2_QUP2_BCR] =3D { 0x28000 }, > >>>> + [GCC_BLSP2_QUP3_BCR] =3D { 0x2a000 }, > >>>> + [GCC_BLSP2_QUP4_BCR] =3D { 0x2c000 }, > >>>> + [GCC_BLSP2_QUP5_BCR] =3D { 0x2e000 }, > >>>> + [GCC_BLSP2_QUP6_BCR] =3D { 0x30000 }, > >>>> + [GCC_PCIE_0_BCR] =3D { 0x6c01c }, > >>> > >>> I find GCC_PCIE_0_BCR at 0x6b000 and then GCC_PCIE_0_PHY_BCR at 0x6c0= 1c. > >> > >> 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? Yes please send a followup patch to add all the possible defines and implementations that you can find. It makes future cross-tree merges simpler.