Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752028AbcDOXtJ (ORCPT ); Fri, 15 Apr 2016 19:49:09 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33621 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbcDOXtG (ORCPT ); Fri, 15 Apr 2016 19:49:06 -0400 Date: Fri, 15 Apr 2016 16:49:03 -0700 From: Stephen Boyd To: Rhyland Klein Cc: Peter De Schrijver , Prashant Gaikwad , Stephen Warren , Thierry Reding , Michael Turquette , Alexandre Courbot , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Bresticker Subject: Re: [PATCH 2/2] clk: tegra: Initialize UTMIPLL when enabling PLLU Message-ID: <20160415234903.GA12052@codeaurora.org> References: <1458590333-8898-1-git-send-email-rklein@nvidia.com> <1458590333-8898-2-git-send-email-rklein@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458590333-8898-2-git-send-email-rklein@nvidia.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 578 Lines: 20 On 03/21, Rhyland Klein wrote: > +static int clk_pllu_enable(struct clk_hw *hw) > +{ > + struct tegra_clk_pll *pll = to_clk_pll(hw); > + struct clk *osc = __clk_lookup("osc"); Is there any way to _not_ use __clk_lookup() here? That function is on my kill list, mostly because it can't handle probe defer and is a hacky way to circumvent regular clk_get(). > + unsigned long flags, input_rate; > + unsigned int i; > + int ret = 0; > + u32 val; > + > + if (!osc) { -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project