Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3829978imu; Mon, 10 Dec 2018 08:28:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/XhcEkBQIDTQP1OBJoUwZcp0iQ2r7gMwlMNKLBZ1LTtkJZkfMacE2Bp68JeCYhRoi4PGQQD X-Received: by 2002:a65:4ccb:: with SMTP id n11mr11649567pgt.257.1544459289634; Mon, 10 Dec 2018 08:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544459289; cv=none; d=google.com; s=arc-20160816; b=nwc8weiGxZnH7NAsTUGUX9wJuMrjt4M5zeAbU5ydbILg1aFykJVlGfH10KWhkYyNmr H3a2BE+tFTW9ZbJN0bc+pQOtFUkWLmqOljVw1nPOt2mnQBBCyoa/ah+iBRzsCRw/AeEL tTONp/4v8fswWG0v7RomjzOAneiK4L/8pPjPf6v+wM5GwYB4n2sz3jz+IIoKiLOdEf+e dFJAGg07j4vCsVQsXDUJdgxw83Z72lwNVFXl1g5G/tINESg3krzsgU0uPTQ+dd9I4iba wA55G/PkCdlKvelQ9+wfD+7ym8ixgFItYexeYd/pzF2MiXP71UUeVB0BkZCiWLv0D37G tC7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:references:user-agent:from :subject:to:message-id:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=SWfL4mPcRIcopNB53EPC5zMJ8VujMRxXkrbFAB/Gagc=; b=vBfjiNOBrKo55cqOstGSJzxJJszNras/J84MzMml8CUn52ZbcnEg5mkkwzNlM8drg6 SFOL6TeJvNu2jPBPELol+26wcBIFH8GKhfagBX2pdoMD9bvJzByT5G4O92r2RLp+c+6O C/7huc1Zvay8HneDX8hs7f1d/jXP2w3LyukRQHuPDFwaEo0nArdVOw18Vodx8h2D1KR5 9CQkXrQfl2Etx7dUx1ZouYmilp3AknASNKNO7g1Zcwr9fdLx/Pf/qtBpW5GbhUyistJ7 2ixyEzm6Hf7ZssIqxFh8CeBTMTJuxlHxsdUuZmVFnRWJYrAHwvXUuo509laABi2civ42 rSqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mE2MI1Yf; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si7815327pgs.94.2018.12.10.08.27.54; Mon, 10 Dec 2018 08:28:09 -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=@chromium.org header.s=google header.b=mE2MI1Yf; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728300AbeLJPvW (ORCPT + 99 others); Mon, 10 Dec 2018 10:51:22 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33870 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728286AbeLJPvV (ORCPT ); Mon, 10 Dec 2018 10:51:21 -0500 Received: by mail-pl1-f193.google.com with SMTP id w4so5447058plz.1 for ; Mon, 10 Dec 2018 07:51:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:message-id:to :subject:from:user-agent:references:cc:date; bh=SWfL4mPcRIcopNB53EPC5zMJ8VujMRxXkrbFAB/Gagc=; b=mE2MI1Yf+8BYi7uDzbXn2jP1bw+3abbQSy49LYfn26pLTqN3DWTixVWavD533Pp0xp AOzRXBwqx9/RHKF9C2b5VEXcL8Db42cYGiWxhnwFUA+tgDLF9CEIwUjpcTH8NK4uSgrB ptEzLwXQJy2xmABjXEOjctJC0WG/fvxTceCw4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:message-id:to:subject:from:user-agent:references:cc :date; bh=SWfL4mPcRIcopNB53EPC5zMJ8VujMRxXkrbFAB/Gagc=; b=bdUOEGN95obWzoIdr4lLNf8wbfA1M3+LVS3b9yX7TBgKp2PRMaa3KBLnlF+6Zuk7BE WYCKNUMmhJvtXUe8cWV5RoiZhRs9YOmrNDEXIxmXRtEdB8J402QxqzyMlzYmhWOGhcox UliDV8aXi2uKH8lC5ZSGBsAOE/3vLVf32POFW81hULesfhnoZ14IqurZZowWy9ibwBeK JbjdJoDhh+9rUXgMsVNx/ZGY2e2T1CYgn1trXYCdK/iihzHcID6r0D++fBUZc1ZJZ8Oc lTfjAYlVmsuy2D2lzPzL5r8tKdddKiNfzBmcvQTCHt1V7iyWEzyzQGgBmlmyQPoSO4Uw GaNw== X-Gm-Message-State: AA+aEWbPtggjmq6qyLfIfhHc8atKm1yg8UmYQ+nYh4QnV/bv5x1KlgRx pGyJm0N6Ug+6BKnUp/2YzUKiFQ== X-Received: by 2002:a17:902:3124:: with SMTP id w33mr12636333plb.241.1544457080992; Mon, 10 Dec 2018 07:51:20 -0800 (PST) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 12sm11830311pgd.35.2018.12.10.07.51.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Dec 2018 07:51:20 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181204224234.62619-5-mka@chromium.org> Message-ID: <154445707953.17204.10100324387384439759@swboyd.mtv.corp.google.com> To: Andy Gross , David Airlie , David Brown , Mark Rutland , Matthias Kaehlcke , Rob Clark , Rob Herring Subject: Re: [PATCH v4 4/8] drm/msm/dsi: 14nm PHY: Get ref clock from the DT From: Stephen Boyd User-Agent: alot/0.7 References: <20181204224234.62619-1-mka@chromium.org> <20181204224234.62619-5-mka@chromium.org> Cc: Archit Taneja , Sean Paul , Rajesh Yadav , Douglas Anderson , Jeykumar Sankaran , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Kaehlcke Date: Mon, 10 Dec 2018 07:51:19 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Matthias Kaehlcke (2018-12-04 14:42:30) > diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c b/drivers/gpu/drm= /msm/dsi/pll/dsi_pll_14nm.c > index 71fe60e5f01f1..032bf3e8614bd 100644 > --- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c > +++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c > @@ -40,7 +40,6 @@ > =20 > #define NUM_PROVIDED_CLKS 2 > =20 > -#define VCO_REF_CLK_RATE 19200000 > #define VCO_MIN_RATE 1300000000UL > #define VCO_MAX_RATE 2600000000UL > =20 > @@ -139,6 +138,7 @@ struct dsi_pll_14nm { > /* protects REG_DSI_14nm_PHY_CMN_CLK_CFG0 register */ > spinlock_t postdiv_lock; > =20 > + struct clk *vco_ref_clk; Is there any need to keep it in the struct? Or just get the clk, find the rate, and then put the clk and call pll_14nm_postdiv_register()? > u64 vco_current_rate; > u64 vco_ref_clk_rate; > =20