From: Roger Quadros <ext-roger.quadros@nokia.com>
To: ext Rajendra Nayak <rnayak@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP3: SR: Fix SR driver to check for omap-pm return values
Date: Wed, 29 Apr 2009 10:49:51 +0300 [thread overview]
Message-ID: <49F8069F.9020205@nokia.com> (raw)
In-Reply-To: <1240988319-30282-1-git-send-email-rnayak@ti.com>
ext Rajendra Nayak wrote:
> This patch checks for the return values of omap_pm_vddx_get_opp()
> in SR driver and acts accordingly. With no SRF layer enabled the OMAP-PM layer
> api is unable to return the current OPP.
>
> Signed-off-by: Rajendra Nayak <rnayak@ti.com>
> ---
> arch/arm/mach-omap2/smartreflex.c | 42 +++++++++++++++++++++++++++++++++---
> 1 files changed, 38 insertions(+), 4 deletions(-)
>
> + if (!omap_pm_vdd1_get_opp())
> + /* Assume Nominal OPP as current OPP unknown */
> + vsel = mpu_opps[VDD1_OPP3].vsel;
> + else
> + vsel = mpu_opps[omap_pm_vdd1_get_opp()].vsel;
> +
Hi Rajendra,
By this approach, what will be the implications if the bootloader had set the
OPP to something different than your assumption?
I think the best approach would be to modify the PM layer to at least return
correct OPP and Frequency values. What do you think?
We should not expect every driver using X_get_opp to assume the OPP if it
returns error.
Please see this thread to see the alternative solution.
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg12021.html
I know it uses resource framework even if we set PM_NONE or PM_NOOP, but only
for getting the correct OPP/frequency values.
regards,
-roger
next prev parent reply other threads:[~2009-04-29 7:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 6:58 [PATCH] OMAP3: SR: Fix SR driver to check for omap-pm return values Rajendra Nayak
2009-04-29 7:49 ` Roger Quadros [this message]
2009-04-29 11:45 ` Nayak, Rajendra
2009-05-13 14:52 ` 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=49F8069F.9020205@nokia.com \
--to=ext-roger.quadros@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=rnayak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox