From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomi Valkeinen Subject: Re: [PATCH] OMAPDSS: Check if RPM enabled before trying to change state Date: Tue, 26 Jun 2012 15:03:33 +0300 Message-ID: <1340712213.24530.21.camel@deskari> References: <1340438771-25587-1-git-send-email-jaswinder.singh@linaro.org> <1340605221.12683.30.camel@lappyti> <1340616643.3395.19.camel@deskari> <1340628094.3395.63.camel@deskari> <1340632161.3395.100.camel@deskari> <1340695166.2093.22.camel@lappyti> <1340701660.24530.17.camel@deskari> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-wOob5e3g/4W3l9hX3cK8" Return-path: Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:46024 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752046Ab2FZMDj (ORCPT ); Tue, 26 Jun 2012 08:03:39 -0400 Received: by lbbgo11 with SMTP id go11so8571710lbb.31 for ; Tue, 26 Jun 2012 05:03:36 -0700 (PDT) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Jassi Brar Cc: mythripk@ti.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, andy.green@linaro.org, n-dechesne@ti.com --=-wOob5e3g/4W3l9hX3cK8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2012-06-26 at 15:27 +0530, Jassi Brar wrote: > Seems similar, but I only tested OMAP4 HDMI. Would something like this one below work for you? It fixes the issues on my overo board. Instead of using omapdss device's suspend/resume callbacks, this one uses PM notifier calls which happen before suspend and after resume. I still think the suspend handling is wrong, omapdss shouldn't be enabling and disabling panel devices like that, but this one should remove the biggest issues with the current suspend method. Tomi diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.= c index 5066eee..c35a248 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c @@ -32,6 +32,7 @@ #include #include #include +#include =20 #include