From patchwork Fri Jul 30 13:01:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 115489 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6UD1Zn3011388 for ; Fri, 30 Jul 2010 13:01:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758521Ab0G3NBd (ORCPT ); Fri, 30 Jul 2010 09:01:33 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:39079 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756427Ab0G3NBc (ORCPT ); Fri, 30 Jul 2010 09:01:32 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6UD1RLB005207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Jul 2010 08:01:27 -0500 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o6UD1ROE000428; Fri, 30 Jul 2010 08:01:27 -0500 (CDT) Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o6UD1RCA029314; Fri, 30 Jul 2010 08:01:27 -0500 (CDT) Received: from [128.247.74.250] (128.247.74.250) by dlee73.ent.ti.com (157.170.170.88) with Microsoft SMTP Server id 8.1.358.0; Fri, 30 Jul 2010 08:01:26 -0500 Message-ID: <4C52CD26.8010908@ti.com> Date: Fri, 30 Jul 2010 08:01:26 -0500 From: Nishanth Menon User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Tomi Valkeinen CC: ext Laine Walker-Avina , "linux-omap@vger.kernel.org" , "linux-fbdev@vger.kernel.org" Subject: Re: OMAP DSS2 coming out of OFF mode without restoring context References: <1280488167.6035.5.camel@Nokia-N900> <1280488679.2427.121.camel@tubuntu.research.nokia.com> In-Reply-To: <1280488679.2427.121.camel@tubuntu.research.nokia.com> 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 (demeter.kernel.org [140.211.167.41]); Fri, 30 Jul 2010 13:01:35 +0000 (UTC) diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index b3a498f..0b9041a 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c @@ -35,6 +35,7 @@ #include #include +#include #include "dss.h" @@ -502,6 +503,10 @@ static int omap_dss_probe(struct platform_device *pdev) core.pdev = pdev; + if (!core.pdev->get_last_off_on_transaction_id) + core.pdev->get_last_off_on_transaction_id = + omap_pm_get_dev_context_loss_count; + dss_init_overlay_managers(pdev); dss_init_overlays(pdev);