From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
x86@kernel.org, Len Brown <lenb@kernel.org>,
Mike Turquette <mturquette@linaro.org>,
Arnd Bergmann <arnd@arndb.de>,
Linus Walleij <linus.walleij@linaro.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Heikki Krogerus <heikki.krogerus@linux.intel.com>,
linux-acpi@vger.kernel.org
Subject: Re: [PATCH 1/3] x86: enable common clk on x86
Date: Wed, 16 Jan 2013 17:28:07 +0200 [thread overview]
Message-ID: <20130116152807.GF2239@intel.com> (raw)
In-Reply-To: <28908583.J70dQJd3BK@vostro.rjw.lan>
On Wed, Jan 16, 2013 at 04:01:20PM +0100, Rafael J. Wysocki wrote:
> On Wednesday, January 16, 2013 07:20:54 AM Mika Westerberg wrote:
> > On Wed, Jan 16, 2013 at 12:59:17AM +0100, Rafael J. Wysocki wrote:
> > > On Monday, January 14, 2013 04:46:26 PM Mika Westerberg wrote:
> > > > We are starting to see traditional SoC peripherals also in the x86 world,
> > > > things like UART, I2C and SPI controllers that might already have a working
> > > > device driver. These drivers typically take advantage of the Linux clk
> > > > framework to control and retrieve information about the peripheral clock.
> > > >
> > > > There hasn't been a standard way on x86 to pass the clock rate from
> > > > whatever configuration system is used to the driver, but instead different
> > > > variations have emerged, like adding this information to the platform data.
> > > >
> > > > In order to use the standard Linux way we enable the common clk subsystem
> > > > also on x86. This allows us to re-use the drivers with little or no
> > > > modification wrt. clock API usage.
> > > >
> > > > This patch was originally proposed by Mark Brown.
> > >
> > > Are there any side effects of selecting COMMON_CLK by an arch and if so then
> > > what are they?
> >
> > Selecting COMMON_CLK also selects HAVE_CLK, so drivers that are dependent
> > on that option become available when you run make config.
>
> Well, that's not very nice. Do you know how many of them there are?
There are few. I tried how many I get on my config and there were 9 new
questions with 'make oldconfig'.
Grepping (if I did it correctly) reveals:
% git grep 'depends .*HAVE_CLK' -- '*/Kconfig' | wc -l
27
> Distros often build all drivers available regardless of whether or not they
> are going to be used and it would be kind of wasteful for them to build drivers
> that aren't even going to work.
If a driver depends only on HAVE_CLK and doesn't work everywhere, there is
a problem in that particular driver and its Kconfig options (some
dependencies are missing). These drivers should be fixed.
next prev parent reply other threads:[~2013-01-16 15:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 14:46 [PATCH 0/3] x86: enable common clk and add support for Lynxpoint clocks Mika Westerberg
2013-01-14 14:46 ` [PATCH 1/3] x86: enable common clk on x86 Mika Westerberg
2013-01-15 23:59 ` Rafael J. Wysocki
2013-01-16 5:20 ` Mika Westerberg
2013-01-16 15:01 ` Rafael J. Wysocki
2013-01-16 15:28 ` Mika Westerberg [this message]
2013-01-17 22:38 ` Rafael J. Wysocki
2013-01-14 14:46 ` [PATCH 2/3] clk: x86: add support for Lynxpoint LPSS clocks Mika Westerberg
2013-01-15 3:11 ` Mark Brown
2013-01-14 14:46 ` [PATCH 3/3] ACPI: create Lynxpoint clocks if LPSS devices are found during scan Mika Westerberg
2013-01-17 23:07 ` Rafael J. Wysocki
2013-01-15 5:27 ` [PATCH 0/3] x86: enable common clk and add support for Lynxpoint clocks Mika Westerberg
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=20130116152807.GF2239@intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=arnd@arndb.de \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=hpa@zytor.com \
--cc=lenb@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=mturquette@linaro.org \
--cc=rjw@sisk.pl \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).