Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753271Ab2EaJEj (ORCPT ); Thu, 31 May 2012 05:04:39 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:34960 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111Ab2EaJEi (ORCPT ); Thu, 31 May 2012 05:04:38 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6727"; a="196291407" Message-ID: <4FC73424.80107@codeaurora.org> Date: Thu, 31 May 2012 02:04:36 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Peter De Schrijver CC: Russell King , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Mike Turquette Subject: Re: [RFC PATCH] clk: add extension API References: <1338285540-24407-1-git-send-email-pdeschrijver@nvidia.com> <4FC5DFCF.1020606@codeaurora.org> <20120531075125.GL8026@tbergstrom-lnx.Nvidia.com> In-Reply-To: <20120531075125.GL8026@tbergstrom-lnx.Nvidia.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1767 Lines: 34 On 5/31/2012 12:51 AM, Peter De Schrijver wrote: > On Wed, May 30, 2012 at 10:52:31AM +0200, Stephen Boyd wrote: >> On 5/29/2012 2:58 AM, Peter De Schrijver wrote: >>> Add an extension API for clocks. This allows clocktypes to provide extensions >>> for features which are uncommon and cannot be easily mapped onto normal clock >>> framework concecpts. eg: resetting blocks, configuring clock phase etc. >> This seems rather generic. Why not add more specific APIs/concepts like >> clk_reset(), clk_set_phase(), etc.? If they don't map, maybe we should >> make them map. >> > Some of those might be very SoC specific. Eg OMAP doesn't need software > controlled modulereset. I don't think we should add a new function to the > clock framework for clock related features which only exist in a single > SoC or family. Ideally we could use inheritance to add methods to derived > clocktypes, but that's not really possible in C unfortunately. Most likely your hardware is not that special and the functionality you think exists only on your SoC actually exists on 5 others. MSM needs software resets too and we also associate them with each clock (there can be many clocks for one device and one reset for each clock). We use them mostly for the power domain code (looks like tegra and omap do the same thing albeit slightly differently). What do you plan to support under this API? -- 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/