login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Mundt <lethal@...>, Dmitry <dbaryshkov@...>, Haavard Skinnemoen <haavard.skinnemoen@...>, <linux-kernel@...>, <akpm@...>, <hskinnemoen@...>, <domen.puncer@...>, <tony@...>, <rmk+kernel@...>, <paul@...>
Date: Thursday, March 27, 2008 - 5:52 am

Hi,

2008/3/26, Paul Mundt <lethal@linux-sh.org>:

No, I don't want to add any more fields to generic struct clk. All
fancy fields should
go intro arch (or even clock-type) specific "priv" struct.


I have an idea of extendability and not "maximisation". And btw if
those clocks can be controlled  from the kernel, one will write a
patch to control them to get better power
management, ease driver interfaces, etc.


I don't mean "additions". I meant optional "rate-controlling"
functions that some platforms
event don't try to implement.


In the current situation if the "rate" or "parent" functionality
doesn't exist and the driver tries to use it, one would either get
compilation errors, or some non-standard -ENOsmth error.

With my patchset if the CLOCK_LIB is selected, the driver can assume
that it can safely call all linux/clk.h functions and if requested
feature isn't supported it'll get -EINVAL.


Yup! Or  as Haavard suggested, via clock extention. I took the first
way, because
I didn't want to conflict too much with OMAP clocks (plat-omap/clock.c
uses clocks
extension for self purposes. Probably this can be merged).


That sound constructive. Good!


IMHO It wasn't good when the linux/clk.h first arrived. Now we already
have a few implmentations of it, so we can really judge what is common
and can be moved
to generic code, what is platform-specific.

-- 
With best wishes
Dmitry
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Clocklib: generic clocks framework, Dmitry Baryshkov, (Wed Mar 26, 11:49 am)
[PATCH 4/4] Clocklib: support ARM pxa sub-arch., Dmitry Baryshkov, (Wed Mar 26, 12:17 pm)
[PATCH 3/3] Clocklib: support sa1100 sub-arch., Dmitry Baryshkov, (Wed Mar 26, 11:53 am)
[PATCH 2/3] Clocklib: debugfs support, Dmitry Baryshkov, (Wed Mar 26, 11:52 am)
[PATCH 1/3] Clocklib: add generic framework for managing clo..., Dmitry Baryshkov, (Wed Mar 26, 11:52 am)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Haavard Skinnemoen, (Wed Mar 26, 12:04 pm)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Haavard Skinnemoen, (Sat Mar 29, 8:36 am)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Haavard Skinnemoen, (Thu Mar 27, 5:06 am)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Haavard Skinnemoen, (Thu Mar 27, 5:26 am)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Haavard Skinnemoen, (Thu Mar 27, 5:53 am)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Haavard Skinnemoen, (Thu Mar 27, 6:20 am)
Re: [PATCH 1/3] Clocklib: add generic framework for managing..., Dmitry, (Thu Mar 27, 5:52 am)
speck-geostationary