Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp814370imm; Wed, 17 Oct 2018 08:43:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV63gCEnWbaIW7zQqJ3xuXLZkinrtWqYP0FfPUmmMpg7fL6sVLNrBNCR3Ow08mRHDu12iawG0 X-Received: by 2002:a17:902:24e7:: with SMTP id l36-v6mr26304141plg.234.1539790999196; Wed, 17 Oct 2018 08:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539790999; cv=none; d=google.com; s=arc-20160816; b=WpWzemYwtr3Bj30Q3UyU0OrzJiiiw48mip/kOCg9ITY4uAsUJYCK/0jexMvianp8+R FB8Z3Zqh00XbFS5gz3FR1FCe5WyKRZvne+WM00NF1yzA0mWNpuvmMKMQ5gag3Yt5kgO8 J9GVNjlmfqTJk53+k9Rw0CfiHwOFv4+1Wka85dzM1WhA9Q4MVT7GZcV/ISC0EXf7mTY6 SdeKK1ogWI+O+wyCW27czQorpnb/s2vIWU+kaa25nDp0NgpobyL5jq7MlkCU7YNCXfpv NSAMBKR3iV8yFhlUPza+JuUV8QvXELqule3HL930InFLpYvQ/lOTjKvoshM9E10Zd3WR oNsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=wMXGVA8tqsWBPfQzcCksbEZEiZ2Qb8etZIsfcR/CJlk=; b=IThcy+KIEAQo1D2t2dvp7mW5Lt4stcRF1HdENeIhKjSDYgOfZHZf5r7Yku6W2yycJD IaS67X/xGSiLQ8JbEryMhMtN4r+5jrvWjJCIw4DW4vBR2ByW6PN8NFQPX+DuAy3FWX+5 xAXISZLhpGyZunPzbk/Zvs0ejA84Smy2t9HFcXxqAmbI5JopcryXuc1yQU9TxxF2NcEI bBDKmyAtvcTR1EI3HCaNHUSgl5/Vc9uodEansqc7K5ByjK/N3pVwAnFFv64mOvuugh/y Gi13jUy9KWetJ66TELnhj6Nyv4bZ1NcxI3IaaU929D4UOq9wYix19wF3p/TMLR6uYYPP XZYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ctuV4vfP; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25-v6si18886514pfk.83.2018.10.17.08.43.03; Wed, 17 Oct 2018 08:43:19 -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=@kernel.org header.s=default header.b=ctuV4vfP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727868AbeJQXhg (ORCPT + 99 others); Wed, 17 Oct 2018 19:37:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:53470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbeJQXhf (ORCPT ); Wed, 17 Oct 2018 19:37:35 -0400 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D777321529; Wed, 17 Oct 2018 15:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539790879; bh=aKACO/jpOvtCZqJ7W2CQxA81agMnEvLFKBv5E82/l84=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=ctuV4vfPUEVKrImyNW0/D3+1+qclOnLQdwO9bnuDcI4wOEqs0vdacbtJSROpyHIDE EHKhQUyYMBdLUhNIT69N51LfOI9SzBlz7/krgvFp1jw9+WBBYhzPM6MFtc1RXi94V2 fCsGY2dG2t/gmU4+fSw6b3EHOaWP+wCsJyHj11JE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Niklas Cassel , bjorn.andersson@linaro.org, ilia.lin@gmail.com From: Stephen Boyd In-Reply-To: <20181014202122.GA13473@centauri.lan> 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 References: <20180614215358.11264-1-ilia.lin@gmail.com> <20180614215358.11264-4-ilia.lin@gmail.com> <153938209728.5275.8811599608746761178@swboyd.mtv.corp.google.com> <20181014202122.GA13473@centauri.lan> Message-ID: <153979087829.5275.6249138489771592939@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v13 3/8] clk: Use devm_ in the register fixed factor clock Date: Wed, 17 Oct 2018 08:41:18 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Niklas Cassel (2018-10-14 13:21:22) > 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(struc= t device *dev, > > > > init.num_parents =3D 1; > > > > > > > > hw =3D &fix->hw; > > > > - ret =3D clk_hw_register(dev, hw); > > > > + ret =3D 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. Sorry, you were too hopeful :/ > Stephen, do you have any review comments on this series? > = Yes, my nitpick should be easy to resolve and then it's just a few open questions after that. Otherwise things seem fine and the CPU can run really fast without bumping up the voltages?