From: "Menon, Nishanth" <nm@ti.com>
To: "G.N, Vijayakumar" <vijaykumar.gn@ti.com>
Cc: "khilman@deeprootsystems.com" <khilman@deeprootsystems.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic
Date: Thu, 19 Nov 2009 05:44:14 -0600 [thread overview]
Message-ID: <4B052F8E.4030203@ti.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E940254330A66@dbde02.ent.ti.com>
G.N, Vijayakumar said the following on 11/19/2009 05:26 AM:
> >From 202416dbdf3fce31bfd76f1e74dda89b382a78c3 Mon Sep 17 00:00:00 2001
> From: Vijay Kumar <vijaykumar.gn@ti.com>
> Date: Thu, 19 Nov 2009 15:07:38 +0530
> Subject: [PATCH 3/3] OMAP 3630: Update VDD2 values
> The OMAP3630 VDD2 minimum value is 1 and Maximum value is 2. The VDD2
> API's are updated to return proper VDD2 values.
>
>
> Signed-off-by: Charulatha V <charu@ti.com>
> Signed-off-by: Manjunath GK <manjugk@ti.com>
> Signed-off-by: Vijay Kumar <vijaykumar.gn@ti.com>
> ---
> arch/arm/mach-omap2/pm34xx.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index 1ed7f53..c240804 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(omap3_get_min_vdd1_opp);
> int omap3_get_max_vdd2_opp(void)
> {
> if (cpu_is_omap3630())
> - return VDD2_OPP3;
> + return VDD2_OPP2;
> else /* Place holder for other 34xx (3430/3440) */
> return VDD2_OPP3;
>
> @@ -1090,9 +1090,9 @@ EXPORT_SYMBOL(omap3_get_max_vdd2_opp);
> int omap3_get_min_vdd2_opp(void)
> {
> if (cpu_is_omap3630())
> - return VDD2_OPP2;
> - else /* Place holder for other 34xx (3430/3440) */
> return VDD2_OPP1;
> + else /* Place holder for other 34xx (3430/3440) */
>
this is redundant.
> + return VDD2_OPP2;
>
> }
> EXPORT_SYMBOL(omap3_get_min_vdd2_opp);
>
I NAK this patch on the principle that these are redundant unashamedly
copies of each function without handling all scenarios:
e.g.
a) what if board x wants to disable vdd2 opp1? how can he get mainline
support with hacking on this?
b) if you have 3630-1000 device, how do you handle it cleanly?
c) you believe in OPP ID here, I DO NOT - I believe we should do things
based off frequencies.
Regards,
Nishanth Menon
next prev parent reply other threads:[~2009-11-19 11:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-19 11:26 [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic G.N, Vijayakumar
2009-11-19 11:44 ` Menon, Nishanth [this message]
[not found] <FCCFB4CDC6E5564B9182F639FC35608702FA75152B@dbde02.ent.ti.com>
[not found] ` <8B823DEBFBDBFA468B80E3A09407512602CA1908BB@dbde02.ent.ti.com>
2009-11-19 14:48 ` G.N, Vijayakumar
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=4B052F8E.4030203@ti.com \
--to=nm@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=vijaykumar.gn@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.