Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3854061imu; Mon, 10 Dec 2018 08:51:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/WaeWGSpfpJfA4GuQqihtUWw4aujOlehCUGyWTg2wDjo32lBduQbfsmCnB7zPxRNuUnnU2n X-Received: by 2002:a17:902:4225:: with SMTP id g34mr13113856pld.152.1544460687649; Mon, 10 Dec 2018 08:51:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544460687; cv=none; d=google.com; s=arc-20160816; b=Dy+htM6tAyCDrYrz7ExzimkjtcvE6KaA83hx/izrTBhgEt40nRckC0FMHfZjJP4Fxf aoXrO+6tkoeWtdkjec2uPfZ3kcNaWIcIbdrsO5lXFAHSh1N1j5HWmbds7Tc6zWmgT5BT Zu/Z6e31jTUaSPm2eWkMSzf8QFAtWP02i55RsufAIN+Ln2Js2x2dOymKyexcGODwgSZR ydwUtgPHjpNXkzpj5ZDBO94m3MPZYfOkjxA7x46SIEjXSRU1BT6q60fksB3HMXnO7V+O HU7KOsz+txqJWBYFTaf/Y06ycufFStjR/oqp7ub49RKAEmFt7o8Gn4Bpun0AtZDHTjqj uQcQ== 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=SKjVSf8dpmsTtLFnF0xryQKCuUU5YZDVw+X78jCeUXU=; b=cZS8A9M9Ub6Yz9b080k7n0eYvbo/tyxOvIzKgK0SBL92TLgcAcRwBEoqxqnafo3BQL goN6tkOr4gpiv6+LFTcbdLnXnCwfbBL/lyUP0xpKnF7aruoH5eDOnOiIouOPGNJ4HLfH 1fobQtRawhXq49Twv45EmhUmHTCyJxCODYJCOzWCS+nThFR8zur0ULpLcPQ/NSLw5I0F ym9OWnugNSaQwgXUITBMrmCKu14TQoD4iG8+8bN2thAkf9xdi10zMJexwwRYCbFnr0xb AVE0visN9GkllmlD36AwwOKrhLTPvCSYC3wZWHJDgF2vYMTGqf5vuHnMXXvEmuAqCwDt Xh9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Er9KWsV5; 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 d34si9383765pgb.43.2018.12.10.08.51.12; Mon, 10 Dec 2018 08:51: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=@chromium.org header.s=google header.b=Er9KWsV5; 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 S1728324AbeLJPwh (ORCPT + 99 others); Mon, 10 Dec 2018 10:52:37 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46723 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728280AbeLJPwg (ORCPT ); Mon, 10 Dec 2018 10:52:36 -0500 Received: by mail-pg1-f194.google.com with SMTP id w7so5130401pgp.13 for ; Mon, 10 Dec 2018 07:52:36 -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=SKjVSf8dpmsTtLFnF0xryQKCuUU5YZDVw+X78jCeUXU=; b=Er9KWsV5uYTnRy72a8QhaBtfikaJ9/SvYiWmiwU73BQohrg60w1JvffR9ZP2dCXriR 02xR4VnNFKVc4GQUNN72a4+BDLDZGgQMwP+EEjZwdNTN+gIqD0dLgDiLto+u0NKkoVQH p7cMJ4lxq5BuP+aFmsotbQtiU8FXYSZz9rzcE= 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=SKjVSf8dpmsTtLFnF0xryQKCuUU5YZDVw+X78jCeUXU=; b=mxxE43bydYYdwkI26cIbKVWIWPzRyQYCxKvseseTafS5Lefzmw4IcLeiaDotgfhrE9 01b6ZuyswE8Gc/19cF7WaH7m+SGwwwIwKHsSXvKspzyj7BYuQuwo7YggZIOOG88d1PqN qDv9NZUZPLiJpleli3GHbzOx2U6SPe8KjqSc0yCV/IDolZ/ABewXxE3pFgCoP3/C4LBz OBxwO5MMO4JDJbM51aKfH7qKXAyFcV16yzVUYygUG0ypcaCTjqEfpLz3iXvFi5u0TgF0 8Z+nV13swmFI2eHUXiwDJV8C1FuCOZYLsFOiZYG5A6SUWdqBmbLuTVF70Ox9AkbzCLMi x/8w== X-Gm-Message-State: AA+aEWaxCD0zhUDhxwzJffd6+j9dP4n23XQEPYab4z6YMopF/xIcf7qD Z7a5YxSjzBMwIzpeFQXn3QajPg== X-Received: by 2002:a62:220d:: with SMTP id i13mr12745610pfi.162.1544457156011; Mon, 10 Dec 2018 07:52:36 -0800 (PST) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id h128sm14096883pgc.15.2018.12.10.07.52.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Dec 2018 07:52:35 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181204224234.62619-6-mka@chromium.org> Message-ID: <154445715454.17204.5993193179251214562@swboyd.mtv.corp.google.com> To: Andy Gross , David Airlie , David Brown , Mark Rutland , Matthias Kaehlcke , Rob Clark , Rob Herring Subject: Re: [PATCH v4 5/8] drm/msm/dsi: 10nm PHY: Get ref clock from the DT From: Stephen Boyd User-Agent: alot/0.7 References: <20181204224234.62619-1-mka@chromium.org> <20181204224234.62619-6-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:52:34 -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:31) > Get the ref clock of the PHY from the device tree instead of > hardcoding its name and rate. >=20 > Note: This change could break old out-of-tree DTS files that > use the 10nm PHY >=20 > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Douglas Anderson > --- > Changes in v4: > - none >=20 > Changes in v3: > - fixed check for EPROBE_DEFER > - added note to commit message about breaking old DTS files > - added 'Reviewed-by: Douglas Anderson ' tag >=20 > Changes in v2: > - remove anonymous array in clk_init_data assignment > - log error code if devm_clk_get() fails > - don't log devm_clk_get() failures for -EPROBE_DEFER > - updated commit message > --- > drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c b/drivers/gpu/drm= /msm/dsi/pll/dsi_pll_10nm.c > index 4c03f0b7343ed..2d23372acd20d 100644 > --- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c > +++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c > @@ -91,6 +91,7 @@ struct dsi_pll_10nm { > void __iomem *phy_cmn_mmio; > void __iomem *mmio; > =20 > + struct clk *vco_ref_clk; Same comment, and also get the name in probe or pass the clk pointer around instead of storing it forever. > u64 vco_ref_clk_rate; > u64 vco_current_rate; > =20