Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1677154imu; Thu, 17 Jan 2019 01:14:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN54SHOqUeDpfowZ5YzFU2b+f1r/0C9aNwf6C38NVIgxB8FwDpVoBIp2X7jj0kwOucfbysSK X-Received: by 2002:a17:902:4681:: with SMTP id p1mr14529791pld.184.1547716443458; Thu, 17 Jan 2019 01:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547716443; cv=none; d=google.com; s=arc-20160816; b=Min/7ZtbDabjeFZ0LuEAsMS7uE69y0sLH4DnanIEgSl5XWGDkOdp9ETw/4M95lYuTB XY1QBIwsx34YU0zd7DiSdlS+27DMqnThcpHEFbaCy2p2klpMLAKcgPJeZkCDXiEgekTL BRsMhlBdkhKXjxfqy7R5t+Ltk/J3D1QckDQYqi7lKFWmN7Ez8ilOS1AtrG4JXp/4H/po YjYD7AHdenAoQq71gIJxvwbUSkRF9Jd0X3lcEZ6y52trAwBNTpN+W3fyD90qdANd+BPf KzJuaQQ5nA+IxBSKr0xl18SfZSlwO2EOxneIevX5A27UWRqdan4Q3Ndr8BQuIH/sSy+t Q+qQ== 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=it49WLHEA1GzTHs3Z8BztlHSPMPMqqjJh3zyQ6F6IVY=; b=Ufobw9uUGhkAfO0IwPw4qE/y+A1CcnKJ0GS3c9SYd94VqRTX3VNAcjFximQEaHxJw1 OhaN6NYWC4VG+RPK7YuFxs4Z+j/Y+MOgHQ4eosbxIxX4kH/Eu95az0oAZQBvy/xHrVUb 1wmDSnBzX+mPjxJVMb6gOk8uxf/MU1u+AvVtkFkj1rWwLS7K2eCzgh/xnjVJk+3DgHMI 8jJm5NcG/ART2jD/BGip6nLd7ofXG+LbKeE49rXdK2LIPsFptGVJ3xbKXQeGJ0Z5b7VQ khV/oTNHtmLfR7YLOWFJOcTm/ejLA23iT9+GB9x7EZVQvYfW2m1V/U7Tu87d26sB57vb kvtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OFJTc2ZW; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si965855pgi.575.2019.01.17.01.13.47; Thu, 17 Jan 2019 01:14:03 -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=@linaro.org header.s=google header.b=OFJTc2ZW; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728841AbfAQG2x (ORCPT + 99 others); Thu, 17 Jan 2019 01:28:53 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33763 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfAQG2w (ORCPT ); Thu, 17 Jan 2019 01:28:52 -0500 Received: by mail-pg1-f194.google.com with SMTP id z11so3986477pgu.0 for ; Wed, 16 Jan 2019 22:28:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=it49WLHEA1GzTHs3Z8BztlHSPMPMqqjJh3zyQ6F6IVY=; b=OFJTc2ZW2OXMpVxSecxBuoozg0/vHavAPyNs43TQ3G6tx+43WIYV12OlMXK4Ha2gU/ mPE8CkGI1nuybffQIAoS8HkNhncXmbRotyaTZwkkd6ZmhYk/kU/O3uZBDUeCow+NCaVz w8Iz0l5jQ+/GE3BYf26fQpt5MbYq+6i+Kl3Jc= 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=it49WLHEA1GzTHs3Z8BztlHSPMPMqqjJh3zyQ6F6IVY=; b=D+VrxrAn6JZN4IUyl4sAnSIomRDUhCYhAe9pME9a3c24c8/AsXsDcLCcfB2mMp6/Xf xbOq3KrLsiWaIyeiaafxA5EMdSpj3yTRkNkTjyPrLWHRaTQvdokw6j5pXtxIWJtl+6SD QQ5sOSREf/0xw5ByLwHA+Kvw4GuxFjTZCH9eFmf4uSa50UKk01YGJjn1HHbXIlh60EgJ SuOnsLl4NnHx/5g8k/Ugml7dJnACGjL3VfQ1d/xkbpLZyLWQ+uwrLu46uTXUmI6HtJPP 7qRi/5lunXhh/1gP47pleplYKlz/pe831YM8Q0ju9ghmhqJwNjkx2RPRfzOQXwvzOveY mdUw== X-Gm-Message-State: AJcUukdm7IudZgnysYEF2iASRq5mm/cFOussP199V8Ju+Nvv0Om3EeU2 mqd4Wzo/G+A8+TrnG44bNyuRKA== X-Received: by 2002:a63:5c22:: with SMTP id q34mr12269636pgb.417.1547706531679; Wed, 16 Jan 2019 22:28:51 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b4sm772074pgq.65.2019.01.16.22.28.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 22:28:51 -0800 (PST) Date: Wed, 16 Jan 2019 22:28:10 -0800 From: Bjorn Andersson To: Jorge Ramirez-Ortiz Cc: robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 07/13] clk: qcom: hfpll: register as clock provider Message-ID: <20190117062810.GD25498@builder> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1545039990-19984-8-git-send-email-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545039990-19984-8-git-send-email-jorge.ramirez-ortiz@linaro.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 17 Dec 01:46 PST 2018, Jorge Ramirez-Ortiz wrote: > Make the output of the high frequency pll a clock provider. > On the QCS404 this PLL controls cpu frequency scaling. > Reviewed-by: Bjorn Andersson > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > --- > drivers/clk/qcom/hfpll.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c > index 87b7f46..0ffed0d 100644 > --- a/drivers/clk/qcom/hfpll.c > +++ b/drivers/clk/qcom/hfpll.c > @@ -53,6 +53,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev) > struct regmap *regmap; > struct clk_hfpll *h; > struct clk *pclk; > + int ret; > struct clk_init_data init = { > .parent_names = (const char *[]){ "xo" }, > .num_parents = 1, > @@ -87,7 +88,14 @@ static int qcom_hfpll_probe(struct platform_device *pdev) > h->clkr.hw.init = &init; > spin_lock_init(&h->lock); > > - return devm_clk_register_regmap(&pdev->dev, &h->clkr); > + ret = devm_clk_register_regmap(dev, &h->clkr); > + if (ret) { > + dev_err(dev, "failed to register regmap clock: %d\n", ret); > + return ret; > + } > + > + return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, > + &h->clkr.hw); > } > > static struct platform_driver qcom_hfpll_driver = { > -- > 2.7.4 >