From patchwork Wed Feb 25 17:03:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Grygorii.Strashko@linaro.org" X-Patchwork-Id: 5881981 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3DE7CBF6C3 for ; Wed, 25 Feb 2015 17:04:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B7DF20304 for ; Wed, 25 Feb 2015 17:04:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 411D720389 for ; Wed, 25 Feb 2015 17:04:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbbBYREC (ORCPT ); Wed, 25 Feb 2015 12:04:02 -0500 Received: from mail-lb0-f171.google.com ([209.85.217.171]:38791 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbbBYREB (ORCPT ); Wed, 25 Feb 2015 12:04:01 -0500 Received: by lbiz11 with SMTP id z11so5245413lbi.5 for ; Wed, 25 Feb 2015 09:04:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oXy5Gvx/SZhF0wMkYwRd0iFNL0qSmpdP8nw4ayC9lq0=; b=Xo3bpRCVeDS8f1ZyDjatM50qku49gGtLnXwKxJx1jubQ6cmLH0aJCN/2c8Y7k9UGkC 9qPHgKbQB5FtrTawi2QQgUTz55V/qjFdI4DT26KizWCzGAq+rcFjcr7p2UYCvaIAa6pV K2UdWc+OlQXrLlXLtoRQynX7r6BbgmR1w5sAZnW6Dg91HgateEtIk+6By5GvoDAk/lRa eQ57UghmCQyJYC94dHkjz3EI5aiG6j6L1EHJqOlUeh119iwNt7IS6+eqpbyRpGWpaUR+ Uwaozk1hOxFPdHloQgwFzbYAUWIT89BCejjyQa2RbZqmaCiSLGzeeDwtlpeIaxmW7bvJ jmTQ== X-Gm-Message-State: ALoCoQkdnlI548z0gaquRBYEpSvLFnOMsFA4EvnAwqqE9n0wjJfMCHcXj1rG01Ki8XIG96Lcua2t X-Received: by 10.112.170.72 with SMTP id ak8mr3502258lbc.95.1424883839973; Wed, 25 Feb 2015 09:03:59 -0800 (PST) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id yr17sm5536878lbb.33.2015.02.25.09.03.59 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 25 Feb 2015 09:03:59 -0800 (PST) From: To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: , , , , , Grygorii Strashko Subject: [PATCH] omapdss: extend pm notifier to handle hibernation Date: Wed, 25 Feb 2015 19:03:56 +0200 Message-Id: <1424883836-9119-1-git-send-email-grygorii.strashko@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Grygorii Strashko Add handling of missed events in omap_dss_pm_notif which are needed to support hibernation (suspend to disk). Signed-off-by: Grygorii Strashko --- drivers/video/fbdev/omap2/dss/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/core.c b/drivers/video/fbdev/omap2/dss/core.c index 6b74f73..e60976a 100644 --- a/drivers/video/fbdev/omap2/dss/core.c +++ b/drivers/video/fbdev/omap2/dss/core.c @@ -178,11 +178,15 @@ static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d) DSSDBG("pm notif %lu\n", v); switch (v) { + case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: + case PM_RESTORE_PREPARE: DSSDBG("suspending displays\n"); return dss_suspend_all_devices(); case PM_POST_SUSPEND: + case PM_POST_HIBERNATION: + case PM_POST_RESTORE: DSSDBG("resuming displays\n"); return dss_resume_all_devices();