* [PATCH] OMAP3: PM: Do not allow OPP1 for VDD2
@ 2009-10-09 6:08 Reddy, Teerth
2009-10-09 14:43 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Reddy, Teerth @ 2009-10-09 6:08 UTC (permalink / raw)
To: linux-omap@vger.kernel.org, Kevin Hilman
>From 144669d941a432875db37ae9431847f6753e566e Mon Sep 17 00:00:00 2001
From: Teerth Reddy <teerth@ti.com>
Date: Wed, 9 Sep 2009 11:01:04 +0530
Subject: OMAP3: PM: Do not allow OPP1 for VDD2
Since OPP1 is not a supported OPP for VDD2, do not allow it to
be changed using the sysfs interface.
Signed-off-by: Teerth Reddy <teerth@ti.com>
---
arch/arm/mach-omap2/pm.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-omap-pm/arch/arm/mach-omap2/pm.c
===================================================================
--- linux-omap-pm.orig/arch/arm/mach-omap2/pm.c
+++ linux-omap-pm/arch/arm/mach-omap2/pm.c
@@ -144,7 +144,7 @@ static ssize_t vdd_opp_store(struct kobj
}
resource_set_opp_level(VDD1_OPP, value, flags);
} else if (attr == &vdd2_opp_attr) {
- if (value < 1 || value > 3) {
+ if (value < 2 || value > 3) {
printk(KERN_ERR "vdd_opp_store: Invalid value\n");
return -EINVAL;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] OMAP3: PM: Do not allow OPP1 for VDD2
2009-10-09 6:08 [PATCH] OMAP3: PM: Do not allow OPP1 for VDD2 Reddy, Teerth
@ 2009-10-09 14:43 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2009-10-09 14:43 UTC (permalink / raw)
To: Reddy, Teerth; +Cc: linux-omap@vger.kernel.org
"Reddy, Teerth" <teerth@ti.com> writes:
> From 144669d941a432875db37ae9431847f6753e566e Mon Sep 17 00:00:00 2001
> From: Teerth Reddy <teerth@ti.com>
> Date: Wed, 9 Sep 2009 11:01:04 +0530
> Subject: OMAP3: PM: Do not allow OPP1 for VDD2
>
> Since OPP1 is not a supported OPP for VDD2, do not allow it to
> be changed using the sysfs interface.
>
> Signed-off-by: Teerth Reddy <teerth@ti.com>
Thanks, pulling into PM branch.
Kevin
> ---
> arch/arm/mach-omap2/pm.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-omap-pm/arch/arm/mach-omap2/pm.c
> ===================================================================
> --- linux-omap-pm.orig/arch/arm/mach-omap2/pm.c
> +++ linux-omap-pm/arch/arm/mach-omap2/pm.c
> @@ -144,7 +144,7 @@ static ssize_t vdd_opp_store(struct kobj
> }
> resource_set_opp_level(VDD1_OPP, value, flags);
> } else if (attr == &vdd2_opp_attr) {
> - if (value < 1 || value > 3) {
> + if (value < 2 || value > 3) {
> printk(KERN_ERR "vdd_opp_store: Invalid value\n");
> return -EINVAL;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-09 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 6:08 [PATCH] OMAP3: PM: Do not allow OPP1 for VDD2 Reddy, Teerth
2009-10-09 14:43 ` Kevin Hilman
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.