linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Kevin Hilman <khilman@ti.com>
Cc: Lesly A M <leslyam@ti.com>,
	linux-omap@vger.kernel.org, David Derrick <dderrick@ti.com>,
	Samuel Ortiz <sameo@linux.intel.com>
Subject: Re: [PATCH v8 3/7] omap3: pm: TWL4030 power scripts for OMAP3 boards
Date: Tue, 08 Mar 2011 21:59:49 +0530	[thread overview]
Message-ID: <4D76597D.5060102@ti.com> (raw)
In-Reply-To: <87y64q4pak.fsf@ti.com>

Kevin Hilman wrote, on 03/08/2011 02:32 AM:
> Lesly A M<leslyam@ti.com>  writes:
>
>> Power bus message sequence for TWL4030 to enter sleep/wakeup/warm_reset.
>>
>> TWL4030 power scripts which can be used by different OMAP3 boards
>> with the power companion chip (TWL4030 series).
>>
>> The twl4030 generic script is exported and can be used by any other
>> boardfile to update the power data in twl4030_platform_data.
>>
>> http://omapedia.org/wiki/TWL4030_power_scripts
>
> This is a very helpful wiki page, thanks for writing that up.
>
> I'd recommend putting a link into the C file as well, saying this code
> implements the recommended sequence as detailed at<wiki page>.
yes it definitely will help - esp duplicating essential parts from the 
wiki in C code. one issue I have with wiki based off line documentation 
is the following: we do have a Documentation/ folder which probably 
should contain the documentation necessary for this.

Ideally there are three main events that occur:
a) OFF mode transition
b) RET transition
c) warm reset

in addition assumptions that NSLEEP2 is not plugged to anything else may 
not be true always - for e.g. for handheld devices it is possible that 
NSLEEP2 is controlled by Modem because one of the rails is supplied from 
TWL. These assumptions should be clearly stated in comments as it is 
possible to fall into the trap of using the default scripts without 
understanding the basic assumptions involved.
IMHO, assumption section for the default script should at the very least 
state:
a) what are the rails that will be controlled by the script and what 
rails are expected to be controlled by drivers (e.g. vmmc) - has impact 
on power consumption
b) what signalling is expected in OFF, RET and warm reset - a basic 
assumption is useful here.
c) what rails go to what level on each of the transitions of OFF/RET/reset

Just my 2 cents having forced myself to read code without looking at the 
wiki.

[...]

-- 
Regards,
Nishanth Menon

  parent reply	other threads:[~2011-03-08 16:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02 13:30 [PATCH v8 0/8] omap3: pm: TWL4030 power scripts and workaround for TWL errata 27 Lesly A M
2011-03-02 13:30 ` [PATCH v8 1/7] omap3: pm: Fix for the TRITON sleep/wakeup sequence Lesly A M
2011-03-08 13:14   ` Menon, Nishanth
2011-03-02 13:30 ` [PATCH v8 2/7] omap3: pm: Correct the warning print during script loading Lesly A M
2011-03-08 13:18   ` Menon, Nishanth
2011-03-02 13:30 ` [PATCH v8 3/7] omap3: pm: TWL4030 power scripts for OMAP3 boards Lesly A M
2011-03-07 21:02   ` Kevin Hilman
2011-03-08  6:50     ` Manuel, Lesly Arackal
2011-03-08 16:29     ` Nishanth Menon [this message]
2011-03-08 16:03   ` Menon, Nishanth
2011-03-02 13:30 ` [PATCH v8 4/7] omap3: pm: TWL5030 version checking Lesly A M
2011-03-03 12:00   ` Krishnamoorthy, Balaji T
2011-03-10  4:15   ` Menon, Nishanth
2011-03-02 13:30 ` [PATCH v8 5/7] mfd: TWL4030: changes for TRITON Errata 27 workaround Lesly A M
2011-03-07 21:14   ` Kevin Hilman
2011-03-08  7:14     ` Manuel, Lesly Arackal
2011-03-02 13:30 ` [PATCH v8 6/7] omap3430: Updating the board file to use TWL4030 scripts Lesly A M
2011-03-07 19:42   ` Kevin Hilman
2011-03-07 21:10     ` Kevin Hilman
2011-03-08  7:06       ` Manuel, Lesly Arackal
2011-03-08  7:01     ` Manuel, Lesly Arackal
2011-03-02 13:30 ` [PATCH v8 7/7] omap3630: " Lesly A M
2011-03-07 21:25 ` [PATCH v8 0/8] omap3: pm: TWL4030 power scripts and workaround for TWL errata 27 Kevin Hilman
2011-03-08  7:30   ` Manuel, Lesly Arackal

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=4D76597D.5060102@ti.com \
    --to=nm@ti.com \
    --cc=dderrick@ti.com \
    --cc=khilman@ti.com \
    --cc=leslyam@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=sameo@linux.intel.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).