diff mbox

OMAP3: PM: Added resource refresh to OPP unlock requests

Message ID 1242302974-4060-1-git-send-email-tero.kristo@nokia.com (mailing list archive)
State Accepted
Delegated to: Kevin Hilman
Headers show

Commit Message

Tero Kristo May 14, 2009, 12:09 p.m. UTC
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(-)

Comments

Kevin Hilman May 14, 2009, 5:04 p.m. UTC | #1
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
--
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
diff mbox

Patch

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;
 		}