Re: [PATCH 1/3] genclk: add generic framework for managing clocks.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: David Brownell <david-b@...>, Dmitry Baryshkov <dbaryshkov@...>, <linux-kernel@...>, Haavard Skinnemoen <haavard.skinnemoen@...>, Paul Mundt <lethal@...>, pHilipp Zabel <philipp.zabel@...>, Pavel Machek <pavel@...>, <tony@...>, <paul@...>, Mark Brown <broonie@...>, ian <spyro@...>
Date: Monday, July 14, 2008 - 6:30 pm

On Sun, Jul 13, 2008 at 02:23:17PM -0700, Andrew Morton wrote:

That doesn't work.  In this case, linux/clk.h _is_ the only source of
the API.  The API is just a defined set of functions.

How an architecture or machine class implements it is at the discressiom
of whoever's writing that code.  The point being, that we have a fixed
core API which drivers can use which is portable across different SoCs.

However, there certainly are implementation specific issues which
architecture code needs to know about - hence why the implementation
has (until genclk) been left completely up to that code to decide and
implement the interface.

So, the only place for that documentation is the header file.  Documenting
an implementation will just confuse the issue and lead people into thinking
that it somehow represents the way things should be done.

Even genclk doesn't represent "The Way Things Should Be Done" - it's just
yet another implementation of the interface.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/3] Clocklib: refactor SA-1100 to use clocklib, Dmitry Baryshkov, (Tue Jul 8, 9:44 am)
[PATCH 2/3] Refactor arm/pxa to use generic clocks support, Dmitry Baryshkov, (Tue Jul 8, 9:43 am)
Re: [PATCH 1/3] genclk: add generic framework for managing c..., Russell King, (Mon Jul 14, 6:30 pm)