Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757043AbYJ3Qjz (ORCPT ); Thu, 30 Oct 2008 12:39:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754396AbYJ3Qjq (ORCPT ); Thu, 30 Oct 2008 12:39:46 -0400 Received: from rv-out-0506.google.com ([209.85.198.237]:53052 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbYJ3Qjo (ORCPT ); Thu, 30 Oct 2008 12:39:44 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KEiMq3cGpGX4y7qdHA9AMB62equOW2BOYsBUr9vjMi0Mqg4C6yetHOt0xrAMkezmTC hAbRQ2MA+m3TEgzakyr6MCFy9xAHbs35mJwrIDj8bj+hmYrTExvysYccf0E92FxrhyeI EzpMupFKzp8xhr2PuPwEzlj/k45tne/XshvG0= Message-ID: <9e4733910810300939x40a7afear7a49557604ced628@mail.gmail.com> Date: Thu, 30 Oct 2008 12:39:42 -0400 From: "Jon Smirl" To: "Jonas Bonn" Subject: Re: [RFC] API for system clocks (oscillators) Cc: linux-kernel@vger.kernel.org In-Reply-To: <7a6abd110810300927l428b11f3u509ad31364c08f1f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7a6abd110810300741wf73f838laa3754e23c22baf3@mail.gmail.com> <9e4733910810300840v7cd45c2cu629d23a27a02c61a@mail.gmail.com> <7a6abd110810300927l428b11f3u509ad31364c08f1f@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1355 Lines: 32 On Thu, Oct 30, 2008 at 12:27 PM, Jonas Bonn wrote: >> >> How does this compare to the framework in linux/include/linux/clk.h? >> > > clk.h is pretty much just an infrastructure for "storing" clock data > and accessors... it does not provide: > > i) Constraints on selectable frequencies of active devices > ii) Notifiers on frequency change, including changes due to events > such as reparenting > > These are the big ones that cause headaches. When I want to switch > frequency, I have to check elsewhere which devices are active and > which frequencies they allow. When a frequency changes, I have to > manually make sure that the active devices are notified properly of > the change. These are the main things that my document tries to > consolidate into one framework. Like I said, I'm not sure it's the > right approach, that's why I requested feedback... You could probably work those features into the existing clk framework. clk_set_rate() could compute the constrains and return an error. The API could be expanded with notifier support. -- Jon Smirl jonsmirl@gmail.com -- 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/