From: Nishanth Menon <nm@ti.com>
To: Roger Quadros <ext-roger.quadros@nokia.com>
Cc: Kevin <khilman@deeprootsystems.com>, Paul <paul@pwsan.com>,
linux-omap <linux-omap@vger.kernel.org>
Subject: Re: [RFC PATCH] OMAP3:PM: Fix OPP scale logic
Date: Tue, 4 Aug 2009 08:11:15 -0500 [thread overview]
Message-ID: <4A783373.8010009@ti.com> (raw)
In-Reply-To: <4A77EAB6.3070208@nokia.com>
Roger Quadros had written, on 08/04/2009 03:00 AM, the following:
> ext Nishanth Menon wrote:
>> diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c
>> index 25535a3..1ceaed8 100644
>> --- a/arch/arm/mach-omap2/resource34xx.c
>> +++ b/arch/arm/mach-omap2/resource34xx.c
>> @@ -240,13 +240,23 @@ static int program_opp_freq(int res, int target_level, int current_level)
>> lock_scratchpad_sem();
>> if (res == VDD1_OPP) {
>> curr_opp = &curr_vdd1_opp;
>> - clk_set_rate(dpll1_clk, mpu_opps[target_level].rate);
>> - clk_set_rate(dpll2_clk, dsp_opps[target_level].rate);
>> + ret = clk_set_rate(dpll1_clk, mpu_opps[target_level].rate);
>> + if (unlikely(ret))
>> + return ret;
>
> if we return here we're not calling unlock_scratchpad_sem(). if you remove the
> return statement the expected functionality will be achieved by the next if(ret)
> statement.
yep. my bad.. thanks.. will fix and resend.
>
> looks like you are changing the return behaviour from opp level to 0/1. You
> should explain this in a function header comment.
This function does not have a function header comment. this information
is already part of the patch header. Quote:"
This changes program_freq_opp return type in the process
for program_opp to handle error in a consistent
manner.
"
Will send out a rev2 based on comment 1 (unlock_scratchpad_sem).
--
Regards,
Nishanth Menon
prev parent reply other threads:[~2009-08-04 13:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 13:41 [RFC PATCH] OMAP3:PM: Fix OPP scale logic Nishanth Menon
2009-08-04 8:00 ` Roger Quadros
2009-08-04 13:11 ` Nishanth Menon [this message]
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=4A783373.8010009@ti.com \
--to=nm@ti.com \
--cc=ext-roger.quadros@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.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.