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: 5881971 Return-Path: X-Original-To: patchwork-linux-fbdev@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 036AEBF440 for ; Wed, 25 Feb 2015 17:04:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3EFBF20386 for ; Wed, 25 Feb 2015 17:04:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6FF3520304 for ; Wed, 25 Feb 2015 17:04:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848AbbBYREC (ORCPT ); Wed, 25 Feb 2015 12:04:02 -0500 Received: from mail-la0-f51.google.com ([209.85.215.51]:35616 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752646AbbBYREB (ORCPT ); Wed, 25 Feb 2015 12:04:01 -0500 Received: by labgm9 with SMTP id gm9so5324366lab.2 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=fFrqSe8JZPywErkoIDQ26sQRKjFuw8BTPSK+Ob0aJgxUycFcrcKFssJD8VUW1YrJff Yqn6LzAYOETYk6BQHokkEot4gLkgZH7c71D2VxHfGiuloKVHp4ZrJ3lfUdJtnMkYwMKk Ajk2jpqa5CAkBB3TihNlp1rV9+OpCntFkyBjj3roqhYZIau6M6JKs6yZUGI29rSabpnw Xc2j5Bxp+gSigmDmBZJO+xDqB/XZmEAVJKbHLdCVAwBwve+sjBKDfwBfSEeVae/ZniWK DZwi+y3nv1915oo/NWzClJZ793b4u20ryVZI/NO4aGYksBtZjj7g2XyUbNQH1L8Mjs5P krxA== X-Gm-Message-State: ALoCoQmnRG+clP9AKzu/Ssmbo05lmctBtBv+orXoVWKwACkxZ061OrCFoRuc/0mmU1zckl08n6VR 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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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=ham 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();