* [PATCH] OMAP3: PM: Added resource refresh to OPP unlock requests
@ 2009-05-14 12:09 Tero Kristo
2009-05-14 17:04 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Tero Kristo @ 2009-05-14 12:09 UTC (permalink / raw)
To: linux-omap
From: Tero Kristo <tero.kristo@nokia.com>
This will set the correct OPP after a lock has been released from sysfs.
Applies on PM branch.
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
---
arch/arm/mach-omap2/pm.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index dde0af3..58ed520 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -166,6 +166,7 @@ static ssize_t vdd_opp_store(struct kobject *kobj, struct kobj_attribute *attr,
attr = &vdd1_opp_attr;
if (vdd1_locked && value == 0) {
resource_unlock_opp(VDD1_OPP);
+ resource_refresh();
vdd1_locked = 0;
return n;
}
@@ -178,6 +179,7 @@ static ssize_t vdd_opp_store(struct kobject *kobj, struct kobj_attribute *attr,
attr = &vdd2_opp_attr;
if (vdd2_locked && value == 0) {
resource_unlock_opp(VDD2_OPP);
+ resource_refresh();
vdd2_locked = 0;
return n;
}
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] OMAP3: PM: Added resource refresh to OPP unlock requests
2009-05-14 12:09 [PATCH] OMAP3: PM: Added resource refresh to OPP unlock requests Tero Kristo
@ 2009-05-14 17:04 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2009-05-14 17:04 UTC (permalink / raw)
To: Tero Kristo; +Cc: linux-omap
Tero Kristo <tero.kristo@nokia.com> writes:
> From: Tero Kristo <tero.kristo@nokia.com>
>
> This will set the correct OPP after a lock has been released from sysfs.
>
> Applies on PM branch.
>
> Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
> Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Thanks, pushing to PM branch today.
Kevin
> ---
> arch/arm/mach-omap2/pm.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index dde0af3..58ed520 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -166,6 +166,7 @@ static ssize_t vdd_opp_store(struct kobject *kobj, struct kobj_attribute *attr,
> attr = &vdd1_opp_attr;
> if (vdd1_locked && value == 0) {
> resource_unlock_opp(VDD1_OPP);
> + resource_refresh();
> vdd1_locked = 0;
> return n;
> }
> @@ -178,6 +179,7 @@ static ssize_t vdd_opp_store(struct kobject *kobj, struct kobj_attribute *attr,
> attr = &vdd2_opp_attr;
> if (vdd2_locked && value == 0) {
> resource_unlock_opp(VDD2_OPP);
> + resource_refresh();
> vdd2_locked = 0;
> return n;
> }
> --
> 1.5.4.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-14 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 12:09 [PATCH] OMAP3: PM: Added resource refresh to OPP unlock requests Tero Kristo
2009-05-14 17:04 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox