Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753631AbbBYWJ5 (ORCPT ); Wed, 25 Feb 2015 17:09:57 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:53191 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753021AbbBYWJz (ORCPT ); Wed, 25 Feb 2015 17:09:55 -0500 Message-ID: <54EE482F.4010402@codeaurora.org> Date: Wed, 25 Feb 2015 14:09:51 -0800 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Ray Jui , Mike Turquette , Matt Porter , Alex Elder , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , Arnd Bergmann CC: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Scott Branden , Dmitry Torokhov , Anatol Pomazau , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH v5 1/6] clk: add of_clk_get_parent_rate function References: <1423097705-22939-1-git-send-email-rjui@broadcom.com> <1423097705-22939-2-git-send-email-rjui@broadcom.com> In-Reply-To: <1423097705-22939-2-git-send-email-rjui@broadcom.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 960 Lines: 23 On 02/04/15 16:55, Ray Jui wrote: > Sometimes a clock needs to know the rate of its parent before itself is > registered to the framework. An example is that a PLL may need to > initialize itself to a specific VCO frequency, before registering to the > framework. The parent rate needs to be known, for PLL multipliers and > divisors to be configured properly. > > Introduce helper function of_clk_get_parent_rate, which can be used to > obtain the parent rate of a clock, given a device node and index. > > Signed-off-by: Ray Jui Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/