Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbdISW6o (ORCPT ); Tue, 19 Sep 2017 18:58:44 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]:48903 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751653AbdISW6m (ORCPT ); Tue, 19 Sep 2017 18:58:42 -0400 X-Google-Smtp-Source: AOwi7QCCTN1vUrlp1D+ZBs+JBkFaObP/eNSUVMBG3T2Spl6UFdNkR1tOm1Ut4KW09u9X8MAzKvvcVw== Date: Tue, 19 Sep 2017 15:58:40 -0700 From: Viresh Kumar To: Dong Aisheng Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sboyd@codeaurora.org, vireshk@kernel.org, nm@ti.com, rjw@rjwysocki.net, shawnguo@kernel.org, Anson.Huang@nxp.com, ping.bai@nxp.com Subject: Re: [PATCH 1/7] PM / OPP: Add platform specific set_clk function Message-ID: <20170919225840.GI30848@ubuntu> References: <1503504610-12880-1-git-send-email-aisheng.dong@nxp.com> <1503504610-12880-2-git-send-email-aisheng.dong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1503504610-12880-2-git-send-email-aisheng.dong@nxp.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 729 Lines: 17 On 24-08-17, 00:10, Dong Aisheng wrote: > This is useful to support platforms which only the clk setting is > different from the generic OPP set rate but others like voltage > setting are still the same. > > Users can use this function to register a custom OPP set clk helper > working in place of the default simple clk setting in the generic > dev_pm_opp_set_rate(). Then user can still use dev_pm_opp_set_rate() > with .set_clk() to save a lot duplicated work. I am not inclined to add this support really. What prevents you to register a clock for the device (which is CPU in your case) and the generic clk_set_rate() will eventually call into the platform specific routine. That's what everyone else is doing. -- viresh