Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp109631imu; Wed, 19 Dec 2018 14:38:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/V0grVVrq9udXTC2fwkT/e+ujlhxYTpZkdt6ULJG7GrUqtK+pNFgxXN5TQ1SBPn76hIHP7j X-Received: by 2002:a17:902:4464:: with SMTP id k91mr22266469pld.13.1545259123293; Wed, 19 Dec 2018 14:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545259123; cv=none; d=google.com; s=arc-20160816; b=a18t73GWNAfWxzFGghiXTGjkM7EtQJP8/y7Jb9lIqztyzu0OefwUrZpmC8NSgFS0So j3XzBHqFZ2yJmzZvDRO8g5HG8Qel78xiOq9z+iAhJrMYjMgvwqYmnBAL5nfEkxSh642G 3hHd5P6TJ6/rTTEy0t8jcu0RS/q0gXZMYPSZQcHPZZdjQhdWPGZWXQIFFOFF/5L7ev1X 0NpZEip+7MOHruvSDLBfMgCuW5vAlYXlEWKq67eCCoS+RO5lXFN8QH/UHl0i/pCIS8Sc bgo/WE0MrMjIg0qkGpqdYJ9S/nxXSh4O1Bw4zOD0faWxftTLjLwI+0SSwbqbQMsG3rFP hsNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Bw2ZDnC/IKpdYZMRJtQLezEpanKWYRsvUQ8mNcqY+BA=; b=r9B1gmSPSuknK/F8oPNxMrUnbKQPq+7bMqr0DdngGnwEXfL1dXJx0j6dUV+BWZRXwG gm/wdgGOe4W8QxZMu6IWaA7XGKYdb0z183n7PEYXc0Vju/mnyGv6/vU6vnS49XZiFx2n 51mdB9p/HSxWzDPJEomtVFYgbSLp/m+WgC7aXh3/h+5u3v/kfbFUIXsXqjCQpODl50hK p4Mnq622D8JgBxElJsJ+mdFcEzsayXOGHUY8jKfvdha4Nd7hPiFz+e7abEbHE2cLD2rg fWM3jAABAZpHh9mdK2fTWucBhP+Cd5VZQGgiv/IsRDTsNI3yBTGZFjQ2G6Jp+5pgOH7e aI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PyRH7yQ6; 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 l66si17961861pfi.5.2018.12.19.14.38.27; Wed, 19 Dec 2018 14:38:43 -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=PyRH7yQ6; 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 S1728748AbeLSWWY (ORCPT + 99 others); Wed, 19 Dec 2018 17:22:24 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36622 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbeLSWWY (ORCPT ); Wed, 19 Dec 2018 17:22:24 -0500 Received: by mail-pf1-f196.google.com with SMTP id b85so10489069pfc.3 for ; Wed, 19 Dec 2018 14:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Bw2ZDnC/IKpdYZMRJtQLezEpanKWYRsvUQ8mNcqY+BA=; b=PyRH7yQ6s0OXNfNBSoQL3jF1LcQpS9k9FqvaM1Shb3y7V+vYdRDHB7WGWaXKZoQ13t fLDirQmEO0uBI0VZJxsEYV7VbQrekj3WxYLDotGMZ/mJ0qT2OP8cYCovzlGjs00iafjP L59G/LXW8j8ydplSHPx3qHI4sflg0QLkMOpCo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Bw2ZDnC/IKpdYZMRJtQLezEpanKWYRsvUQ8mNcqY+BA=; b=GAtyHwudW22w+GvGBBk8UNyq7VP2UIreBE9AT7cKMZal7MI1qyAkFklEAVnlkgU5fX Jnp7QexfwQZ8KgT/LhvKL2VKLrE70r9uaKajMCew9TD9Ys+A1HGgD4y5/5YRAEvoXnzc +aG0KsRPJUXkhZGsL7oGKhW6AZ0N1ZDE3avRgNt6opCifYrQqFlSrhwxx0AxdRBmRLzM lDqh2Y3KdzAasVhvlHiFEoBHt31hS0zaFTzIKrcgrSrbPsUH883qRb41YcbUwWzGz0AA RT3FwSLk/v9iNCF1ffBmjqRHCgmHO+j/JSE0e0TQCWJ3Bjv3m8d70a5OT/EZgc6sCfWq 1UgQ== X-Gm-Message-State: AA+aEWYaEKHX4om8wFRv0XZgN9suR0wayoWzj7r+L0AFri4HOBqS/Cts 8WGYUdd7QRB5xQjhIbfu68/e6w== X-Received: by 2002:a63:20e:: with SMTP id 14mr20881807pgc.161.1545258143585; Wed, 19 Dec 2018 14:22:23 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id p6sm24663237pfn.53.2018.12.19.14.22.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Dec 2018 14:22:22 -0800 (PST) Date: Wed, 19 Dec 2018 14:22:22 -0800 From: Matthias Kaehlcke To: Stephen Boyd Cc: Andy Gross , David Airlie , David Brown , Mark Rutland , Rob Clark , Rob Herring , 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 Subject: Re: [PATCH v4 4/8] drm/msm/dsi: 14nm PHY: Get ref clock from the DT Message-ID: <20181219222222.GA261387@google.com> References: <20181204224234.62619-1-mka@chromium.org> <20181204224234.62619-5-mka@chromium.org> <154445707953.17204.10100324387384439759@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <154445707953.17204.10100324387384439759@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 10, 2018 at 07:51:19AM -0800, Stephen Boyd wrote: > 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 @@ > > > > #define NUM_PROVIDED_CLKS 2 > > > > -#define VCO_REF_CLK_RATE 19200000 > > #define VCO_MIN_RATE 1300000000UL > > #define VCO_MAX_RATE 2600000000UL > > > > @@ -139,6 +138,7 @@ struct dsi_pll_14nm { > > /* protects REG_DSI_14nm_PHY_CMN_CLK_CFG0 register */ > > spinlock_t postdiv_lock; > > > > + 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()? I suppose you mean passing the clock name to pll_14nm_register()? Is putting the clock really needed or preferable, or is it just fine to auto-put it when the device is deleted?