From: Kevin Hilman <khilman@ti.com>
To: Nishanth Menon <nm@ti.com>
Cc: Shweta Gulati <shweta.gulati@ti.com>,
linux-omap@vger.kernel.org, Thara Gopinath <thara@ti.com>
Subject: Re: [PATCH V2] OMAP3: PM: Set/reset T2 bit for Smartreflex on TWL.
Date: Wed, 02 Feb 2011 13:39:07 -0800 [thread overview]
Message-ID: <87y65y9kw4.fsf@ti.com> (raw)
In-Reply-To: <4D48C1A4.6040600@ti.com> (Nishanth Menon's message of "Wed, 02 Feb 2011 07:59:56 +0530")
Nishanth Menon <nm@ti.com> writes:
> Kevin Hilman wrote, on 02/02/2011 04:11 AM:
>> Shweta Gulati<shweta.gulati@ti.com> writes:
>>
>>> From: Thara Gopinath<thara@ti.com>
>>>
>>> The smartreflex bit on twl4030 needs to be enabled by default irrespective
>>> of whether smartreflex module is enabled on the OMAP side or not.
>>> This is because without this bit enabled the voltage scaling through
>>> vp forceupdate does not function properly on OMAP3.API added
>>> 'omap3_twl_set_sr_bit' with parameter to set/clear SR bit. It is cleared
>>> for platforms where voltage is not scaled using vpforceupdate
>>> or vc_bypass Method. In those cases 'omap3_twl_set_sr_bit' is called
>>> from board file, to make sure this bit is not overwritten in
>>> 'omap3_twl_init', a flag 'twl_sr_enable'
>>> is added.
>>
>> As Sanjeev pointed out, the use of 'irrespective' above is confusing, in
>> fact the whole changelog is kind of confusing.
>>
>> The changelog states that it has to always be enabled, but then goes on
>> to describe the situation(s) where it would be disabled.
>>
>> Here's my rephrasing of how I understand the above changelog
>>
>> - enable: *always* be enabled
>> - enable: needed for VP force update
>> - disable: platforms using VP forced update or VP bypass
>>
>> -ECONFUSED
>>
>> Kevin
>
> How about this as the commit log?
>
> The smartreflex bit on twl4030 specifies if the setting of voltage
> is done over the I2C_SR path. Given that there are platforms that
> do not use I2C_SR path for voltage scaling, a new function
> 'omap3_twl_set_sr_bit' with parameter to set/clear SR bit has been
> provided for flexibility.
So far so good.
> It is called with appropriate param
> for platforms where voltage is not scaled using I2C_SR path
> from board file, to make sure this bit is not overwritten in
> 'omap3_twl_init'.
-ENOPARSE
>
>
>>
>>> This patch is based on LO PM Branch and Smartreflex has been
>>> tested on OMAP3430 SDP, OMAP3630 SDP and boot tested on
>>> OMAP2430 SDP.
>
> this belongs into the diffstat.
>
> Attached is a modified version of this patch - i'vent tested it
> though.. but basically improves the logic a little:
>
> *) made the comments more generic to ensure that this is more of
> I2C_SR path as far as TWL is concerned(yes, from OMAP perspective it
> is vp forceupdate/bypass), but it is more of an OMAP problem than
> omap_twl.c problem.
> *) modified the function call sequences to prevent rentry even if
> board file calls with various other params
> *) shifted to using bool
> *) use init and initdata to free up the space once we are done with
> init sequence
All good changes, but I don't think they're incorporated in V3.
> etc...
>
>
> Do let me know if this is good enough.
Not quite yet,
Kevin
next prev parent reply other threads:[~2011-02-02 21:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 5:37 [PATCH V2] OMAP3: PM: Set/reset T2 bit for Smartreflex on TWL Shweta Gulati
2011-01-31 13:49 ` Koyamangalath, Abhilash
2011-02-01 5:41 ` Gulati, Shweta
2011-02-01 22:41 ` Kevin Hilman
2011-02-02 2:29 ` Nishanth Menon
2011-02-02 2:33 ` Nishanth Menon
2011-02-02 21:39 ` Kevin Hilman [this message]
2011-02-03 1:17 ` Nishanth Menon
2011-02-03 18:05 ` Kevin Hilman
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=87y65y9kw4.fsf@ti.com \
--to=khilman@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=shweta.gulati@ti.com \
--cc=thara@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.