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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Mundt <lethal@...>, Haavard Skinnemoen <haavard.skinnemoen@...>, Dmitry Baryshkov <dbaryshkov@...>, <linux-kernel@...>, <akpm@...>, <hskinnemoen@...>, <tony@...>, <rmk+kernel@...>, <paul@...>
Date: Wednesday, March 26, 2008 - 1:04 pm

Hi,

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

In reality, as noted David Brownell on LAKML, there is no API consistency.
The driver has no way to know whether clk API is implemented at all or whether
the "optional" functions do exist.

Moreover clocks aren't limited only to platform-specific code. As an
example of the in-tree driver that will benefit from clocklib you can
check drivers/mfd/sm501.c which  contains  it's own set of functions
to manage clocks.


That's one of the initial reasons of this patchserie: I have a device
that can be installed on several platforms. And I want for this device
to provide clocks to some other devices.

Simply saying "Oh, things are different" is behaving like a ostrich:
hiding a head in the sand.

As most generification patches do, this one has it's drawbacks, but
they are not so big, as you describe.

-- 
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, (Wed Mar 26, 1:04 pm)