Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3170704imm; Sun, 14 Oct 2018 13:22:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV61OvyeXh4o6eLt+wFznkr3wagN09RhJQIR6vh2fPUhXRWuVlZ2yzIzK6DTyZaU7WZ2usnnY X-Received: by 2002:a63:dd58:: with SMTP id g24-v6mr13186636pgj.86.1539548531260; Sun, 14 Oct 2018 13:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539548531; cv=none; d=google.com; s=arc-20160816; b=Q7ZccLTrPRe+hg/WyRm7OrtUmkawCBjV+ARxMDECtKNUniuz0yXIBfNFMzmhDX8hAI Mq4ZdWw6J9+k5fkdbBGrW1wMsPhGG4X0X4/O7UNKxezquVAYUx6NcinsIruUn+kKGDiu jkvaQZ5JSIT7a7E9TL6asimOB8koPwfRQC+Ef4e0weq8KqxUtYq1K/UeMk9p13wH3dtb I5euDrVDL1ajbJmZJXL7A/U45bDhnWhmgbwUsRe/fcl1TOWREWNEOwsmocD+jUapmugA tLa5k0E3jKKRa9rLCUW8E/QERLclY0gdenRdMLp1gSWOe8B9RFM7LRLqU3h1Rr0B3W9f /I9Q== 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=/Jc7fZ4IAwRm/8V+dfbExXyTYzbiNsgj/Mb0R5mMrfM=; b=zTie5XQW50ANCdtRFMEmX27tFU1acVFWY5+7drQ/ySUFoDgbNhcPgoGAkO6FM/YYso c2GxVbqQeyqd+mPp5F4XprjXit6Y8xbJgUcVcymSthq/en92bsk283HZ4DwYUplFely2 T41A/tx7rsFX0DH2svE4/F4oIpPsnPM+upJcaxfuLviP6kR+xzyQwsH3FUsx+WhCqJNx bqtibRZ2CAvBmIoq7cze7LOjBc+5JvYfHJMNO4U1mU/CifCyCFMW9DYifbIYNy6nu0DS aTT1BJuKlvJ9j7c8hUZtI7O+jbNP2wdSz9vevMQzgzxo1XXE0rDj0CUDFVCDIc83crAV r+eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f2krKmfA; 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 u1-v6si8117819pgj.430.2018.10.14.13.21.54; Sun, 14 Oct 2018 13:22:11 -0700 (PDT) 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=f2krKmfA; 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 S1726262AbeJOEDh (ORCPT + 99 others); Mon, 15 Oct 2018 00:03:37 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42879 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbeJOEDg (ORCPT ); Mon, 15 Oct 2018 00:03:36 -0400 Received: by mail-lf1-f67.google.com with SMTP id s10-v6so12610699lfc.9 for ; Sun, 14 Oct 2018 13:21:26 -0700 (PDT) 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=/Jc7fZ4IAwRm/8V+dfbExXyTYzbiNsgj/Mb0R5mMrfM=; b=f2krKmfAOC97PIRJ7Y18xuzCBswZdjEXtSUjIFsAno9Ycz9bUBKlIIO9hUGd8h0BL7 SOCN9TJ52WYt9BqeiTRQzx93cKavxydARcsODfQdf8jlVLST2E7tmyFHgxES1fkt0coE EXFOow4jFEzHexg5rDVe0i08LotXHd2ZtR8RA= 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=/Jc7fZ4IAwRm/8V+dfbExXyTYzbiNsgj/Mb0R5mMrfM=; b=crzF6RFuOw34wFhO1GiU17qu0kj4UNayMX2cXMrugVeSqDC+u7Dgta8c+ql+b1d1VV LsQO5txqDwC2UAEj4tpotGZK0cizxWfoFIm3ugiB+TCQe7tVNSH5sH46cMviT5iekXsq Tn7lpl+ZUQH9rEO/UXkPSNNfzjemVltqH9NiAguEYL4SaG1a5JqKXnG9Hvc4QognHLWd uncdnd96pjUZYgRMsJI/42e0lFsSVYQgjp5+3+XqjpEsB1ebpMnHVm3M0AbNX/nS98nj INqrFzsaeJr/Cb3GazmbNT8eKn05rOK49VLHMDxrIO3rh0pt0LQcoqDNH46NPVrIJtqk hO5g== X-Gm-Message-State: ABuFfojNnD47hc1uj+epyJawjFrqx6LoIpcJ/ANQrb+uIVewZR4ayTRB y9MYI50ZT3HrRdAJf5tf8na9vQ== X-Received: by 2002:a19:645e:: with SMTP id b30-v6mr8156386lfj.5.1539548485263; Sun, 14 Oct 2018 13:21:25 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id m131-v6sm972912lfe.38.2018.10.14.13.21.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Oct 2018 13:21:24 -0700 (PDT) Date: Sun, 14 Oct 2018 22:21:22 +0200 From: Niklas Cassel To: Stephen Boyd , ilia.lin@gmail.com, bjorn.andersson@linaro.org Cc: Ricardo Salveti , mturquette@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, will.deacon@arm.com, Amit Kucheria , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v13 3/8] clk: Use devm_ in the register fixed factor clock Message-ID: <20181014202122.GA13473@centauri.lan> References: <20180614215358.11264-1-ilia.lin@gmail.com> <20180614215358.11264-4-ilia.lin@gmail.com> <153938209728.5275.8811599608746761178@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153938209728.5275.8811599608746761178@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 Fri, Oct 12, 2018 at 03:08:17PM -0700, Stephen Boyd wrote: > Quoting Ricardo Salveti (2018-09-14 11:53:02) > > On Thu, Jun 14, 2018 at 6:55 PM wrote: > > > > > > From: Ilia Lin > > > > > > Use devm_clk_hw_register instead of clk_hw_register > > > to simplify the usage of this API. This way drivers that call > > > the clk_hw_register_fixed_factor won't need to maintain > > > a data structure for further cleanup. > > > > > > Signed-off-by: Ilia Lin > > > Tested-by: Amit Kucheria > > > --- > > > drivers/clk/clk-fixed-factor.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c > > > index a5d402de5584..8e39bda8e596 100644 > > > --- a/drivers/clk/clk-fixed-factor.c > > > +++ b/drivers/clk/clk-fixed-factor.c > > > @@ -94,7 +94,7 @@ struct clk_hw *clk_hw_register_fixed_factor(struct device *dev, > > > init.num_parents = 1; > > > > > > hw = &fix->hw; > > > - ret = clk_hw_register(dev, hw); > > > + ret = devm_clk_hw_register(dev, hw); > > > > Not sure what is the current state of this patch-set, but this change > > breaks drivers calling clk_hw_register_fixed_factor with a NULL dev > > (e.g. imx_clk_fixed_factor), as devm_clk_hw_register needs a valid dev > > for devres_add to work. > > > > Yep. Probably better to just have a driver register the clk_hw structure > itself with the clk framework vs. trying to get it right here in the > generic type registration function. > Hello Ilia, Stephen, As you know this patch series is needed to get DVFS working on msm8996. Ilia, are you planning on submitting a new patch set for this, or would you prefer if we submitted a new patch version for you? Looking at this patch series, this appears to be the only outstanding review comment. Stephen, do you have any review comments on this series? Kind regards, Niklas