From patchwork Tue Dec 7 22:56:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 384492 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB7MuePn001132 for ; Tue, 7 Dec 2010 22:56:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752395Ab0LGW4j (ORCPT ); Tue, 7 Dec 2010 17:56:39 -0500 Received: from utopia.booyaka.com ([72.9.107.138]:58155 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085Ab0LGW4i (ORCPT ); Tue, 7 Dec 2010 17:56:38 -0500 Received: (qmail 13744 invoked by uid 1019); 7 Dec 2010 22:56:37 -0000 Date: Tue, 7 Dec 2010 15:56:37 -0700 (MST) From: Paul Walmsley To: "Chikkature Rajashekar, Madhusudhan" cc: Adrian Hunter , =?ISO-8859-15?Q?Beno=EEt_Cousson?= , Kishore Kadiyala , "khilman@deeprootsystems.com" , "linux-omap@vger.kernel.org" , "sawant@ti.com" , "Kristo Tero \(Nokia-D/Tampere\)" Subject: Re: OMAP HSMMC problems with off-mode In-Reply-To: Message-ID: References: <4CFE9059.1080202@nokia.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 07 Dec 2010 22:56:41 +0000 (UTC) diff --git a/arch/arm/plat-omap/omap-pm-noop.c b/arch/arm/plat-omap/omap-pm-noop.c index e129ce8..781aa5f 100644 --- a/arch/arm/plat-omap/omap-pm-noop.c +++ b/arch/arm/plat-omap/omap-pm-noop.c @@ -30,6 +30,8 @@ struct omap_opp *dsp_opps; struct omap_opp *mpu_opps; struct omap_opp *l3_opps; +static int dummy_context_loss_counter; + /* * Device-driver-originated constraints (via board-*.c files) */ @@ -303,7 +305,7 @@ int omap_pm_get_dev_context_loss_count(struct device *dev) * off counter. */ - return 0; + return dummy_context_loss_counter++; }