From: Paul Walmsley <paul@pwsan.com>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Aaro Koskinen" <aaro.koskinen@nokia.com>,
"Rajendra Nayak" <rnayak@ti.com>,
"Benoît Cousson" <b-cousson@ti.com>,
"Michael Buesch" <mb@bu3sch.de>
Subject: Re: [PATCH] OMAP: hwmod: add kernel cmdline flag to avoid resetting IP blocks during init
Date: Wed, 6 Jul 2011 14:57:52 -0600 (MDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1107060155250.4217@utopia.booyaka.com> (raw)
In-Reply-To: <20110706064116.GH5783@atomide.com>
Hi Tony
On Tue, 5 Jul 2011, Tony Lindgren wrote:
> So basically we want to tell the following from the board file or board
> specific .dts file:
>
> - Device is being used on the board and can be reset and configured.
> This is the usual case.
By 'used', you mean, have a Linux driver associated with them, right?
> - Device is being used on the board but can't be reset. This is the
> case for booting Linux from other operating systems initially where
> you want to keep the LCD on for debug console.
Or, to use examples that would be needed in a production device, the
4460/N810 GPIO examples discussed earlier.
Based on our current experience, there are a very small number of these
cases, and they are board-specific. So it seems to make sense to
explicitly state these exceptions in the board files, via
omap_hwmod_no_setup_reset() or something similar.
> - Device is not being used on the board but can be reset for decent PM.
> This is often needed in cases where the bootloader just enables all the
> clocks.
Yeah. And it's not just bootloaders, it's also the previous kernel in the
case of something like kexec. Since we don't know what devices the
bootloader or previous kernel touched, it seems to make sense to reset all
of these devices by default, once the drivers are converted to use runtime
PM.
The current issue here is that some drivers aren't yet converted, so the
hwmod code might think that some devices are 'unused' when they are
actually in use by a non-runtime-PM-based driver.
> - Device is reserved by secure mode or a coprocessor. In this case
> the device can't be reset.
Indeed - or even accessed.
> So I guess that makes the flags noreset, disabled and unavailable?
I think we only need 'no reset' and 'unavailable'? Once the runtime PM
driver conversion is complete, I don't think there's any reason to keep
the 'hwmod_unused_reset' command line flag around, since it can be the
default. That's because the hwmod code would then be able to track which
devices were actually used.
- Paul
next prev parent reply other threads:[~2011-07-06 20:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110703010204.19046.85186.stgit@dusk>
2011-07-03 1:02 ` [PATCH] OMAP: hwmod: add kernel cmdline flag to avoid resetting IP blocks during init Paul Walmsley
2011-07-04 8:55 ` Tony Lindgren
2011-07-06 1:42 ` Paul Walmsley
2011-07-06 2:00 ` Paul Walmsley
2011-07-06 6:43 ` Tony Lindgren
2011-07-06 21:01 ` Paul Walmsley
2011-07-06 6:41 ` Tony Lindgren
2011-07-06 20:57 ` Paul Walmsley [this message]
2011-07-07 5:27 ` Tony Lindgren
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=alpine.DEB.2.00.1107060155250.4217@utopia.booyaka.com \
--to=paul@pwsan.com \
--cc=aaro.koskinen@nokia.com \
--cc=b-cousson@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mb@bu3sch.de \
--cc=rnayak@ti.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;
as well as URLs for NNTP newsgroup(s).