Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753485Ab1BOGbO (ORCPT ); Tue, 15 Feb 2011 01:31:14 -0500 Received: from wolverine02.qualcomm.com ([199.106.114.251]:51510 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751323Ab1BOGbM (ORCPT ); Tue, 15 Feb 2011 01:31:12 -0500 X-IronPort-AV: E=McAfee;i="5400,1158,6257"; a="74276232" Message-ID: <4D5A1DAF.5050302@codeaurora.org> Date: Mon, 14 Feb 2011 22:31:11 -0800 From: Saravana Kannan User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Jeremy Kerr CC: Nicolas Pitre , Dima Zavin , Lorenzo Pieralisi , Vincent Guittot , linux-sh@vger.kernel.org, Ben Herrenschmidt , Sascha Hauer , linux-kernel@vger.kernel.org, Ryan Mallon , Paul Mundt , Ben Dooks , =?ISO-8859-1?Q?Uwe_Kleine-K=F6nig?= , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC,PATCH 2/3] clk: Generic support for fixed-rate clocks References: <1297233693.242725.820672531799.2.gpush@pororo> <201102150941.00668.jeremy.kerr@canonical.com> <4D5A063F.1010102@codeaurora.org> <201102151418.37780.jeremy.kerr@canonical.com> In-Reply-To: <201102151418.37780.jeremy.kerr@canonical.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 858 Lines: 21 On 02/14/2011 10:18 PM, Jeremy Kerr wrote: > Because the drivers using this clock don't know that it's a fixed clock. > > For example, a uart needs to know the rate of its clock source, so that it can > set its internal divisors to get a valid baud rate. The uart driver will query > the input rate using clk_get_rate(). The driver still needs to call > clk_enable/clk_prepare/etc, because on some systems it may have a switchable > clock. Thanks. Makes sense. -Saravana -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- 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/