From patchwork Thu May 14 12:09:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 23757 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4ECaLbc023626 for ; Thu, 14 May 2009 12:36:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759121AbZENMgL (ORCPT ); Thu, 14 May 2009 08:36:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758173AbZENMgL (ORCPT ); Thu, 14 May 2009 08:36:11 -0400 Received: from smtp.nokia.com ([192.100.122.233]:16999 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756407AbZENMgK (ORCPT ); Thu, 14 May 2009 08:36:10 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n4ECZcXW025661 for ; Thu, 14 May 2009 15:36:03 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 14 May 2009 15:36:06 +0300 Received: from mgw-int01.ntc.nokia.com ([172.21.143.96]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 14 May 2009 15:36:06 +0300 Received: from localhost.localdomain (sokoban.ntc.nokia.com [172.22.144.95]) by mgw-int01.ntc.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id n4ECa47F007357 for ; Thu, 14 May 2009 15:36:04 +0300 From: Tero Kristo To: linux-omap@vger.kernel.org Subject: [PATCH] OMAP3: PM: Added resource refresh to OPP unlock requests Date: Thu, 14 May 2009 15:09:34 +0300 Message-Id: <1242302974-4060-1-git-send-email-tero.kristo@nokia.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <> References: <> X-OriginalArrivalTime: 14 May 2009 12:36:06.0149 (UTC) FILETIME=[8CECFB50:01C9D490] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Tero Kristo This will set the correct OPP after a lock has been released from sysfs. Applies on PM branch. Signed-off-by: Tero Kristo Signed-off-by: Jouni Hogander --- 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; }