From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Paul Mundt <lethal@linux-sh.org>,
Haavard Skinnemoen <haavard.skinnemoen@atmel.com>,
Dmitry Baryshkov <dbaryshkov@gmail.com>,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
hskinnemoen@atmel.com, domen.puncer@telargo.com,
tony@atomide.com, paul@pwsan.com
Subject: Re: [PATCH 1/3] Clocklib: add generic framework for managing clocks.
Date: Wed, 26 Mar 2008 20:09:25 +0000 [thread overview]
Message-ID: <20080326200925.GB7145@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20080326161456.GA12490@linux-sh.org>
On Thu, Mar 27, 2008 at 01:14:56AM +0900, Paul Mundt wrote:
> Conversely it also has fields that I don't need. If struct clk could have
> been done generically without growing to insane sizes, it would have been
> done so in linux/clk.h a long time ago. The main thing there is API
> consistency for drivers, leaving the details up to the architecture.
>
> It's true that there is significant overlap between the different users
> of the clock framework, but it's also not clear that there's any clean
> way to share a common implementation (especially since struct clk means
> totally different things on different architectures). I suspect everyone
> in the CC list has been through this before, also.
That's the exact reason why I never implemented any kind of framework
and just left it as an API for drivers to use. What's behind the API
is very platform specific, and as can be seen from the comments, trying
to define something common results in something that just doesn't fit
in different ways.
Trying to make it expand to fit someone elses platform makes it unsuitable
for another due to it becoming too heavy weight.
Personally, I don't have much interest in these patches - had I been
interested in having a common framework behind it when I created the
API, I'd have written some code.
However, if folk think that they can solve the complexity problem while
still allowing for simple implementations...
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
next prev parent reply other threads:[~2008-03-26 20:13 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 15:49 [PATCH 0/3] Clocklib: generic clocks framework Dmitry Baryshkov
2008-03-26 15:52 ` [PATCH 1/3] Clocklib: add generic framework for managing clocks Dmitry Baryshkov
2008-03-26 16:04 ` Haavard Skinnemoen
2008-03-26 16:14 ` Paul Mundt
2008-03-26 17:04 ` Dmitry
2008-03-26 20:09 ` Russell King [this message]
2008-03-26 16:52 ` Dmitry
2008-03-26 17:44 ` Paul Mundt
2008-03-27 9:52 ` Dmitry
2008-03-26 17:44 ` Juergen Beisert
2008-03-27 9:06 ` Haavard Skinnemoen
2008-03-27 9:18 ` Russell King
2008-03-27 9:26 ` Haavard Skinnemoen
2008-03-27 9:33 ` Russell King
2008-03-27 9:50 ` Paul Mundt
2008-03-27 9:53 ` Haavard Skinnemoen
2008-03-27 10:08 ` Dmitry
2008-03-27 10:20 ` Haavard Skinnemoen
2008-03-27 13:33 ` Dmitry
2008-03-27 9:29 ` pHilipp Zabel
2008-03-27 9:36 ` Russell King
2008-03-28 14:23 ` Pavel Machek
2008-03-29 12:36 ` Haavard Skinnemoen
2008-03-26 15:52 ` [PATCH 2/3] Clocklib: debugfs support Dmitry Baryshkov
2008-03-26 15:53 ` [PATCH 3/3] Clocklib: support sa1100 sub-arch Dmitry Baryshkov
2008-03-26 16:17 ` [PATCH 4/4] Clocklib: support ARM pxa sub-arch Dmitry Baryshkov
2008-06-26 12:50 [PATCH 0/3] Clocklib: generic framework for clocks managing [v3] Dmitry Baryshkov
2008-06-26 12:51 ` [PATCH 1/3] Clocklib: add generic framework for managing clocks Dmitry Baryshkov
2008-06-26 15:00 ` pHilipp Zabel
2008-06-26 15:03 ` Dmitry Baryshkov
2008-07-03 20:31 ` Ben Dooks
2008-07-04 8:44 ` Pavel Machek
2008-07-04 9:04 ` Dmitry Baryshkov
2008-07-04 9:12 ` Haavard Skinnemoen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080326200925.GB7145@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=dbaryshkov@gmail.com \
--cc=domen.puncer@telargo.com \
--cc=haavard.skinnemoen@atmel.com \
--cc=hskinnemoen@atmel.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®