Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752654AbbBYJhX (ORCPT ); Wed, 25 Feb 2015 04:37:23 -0500 Received: from cantor2.suse.de ([195.135.220.15]:47506 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbbBYJhT (ORCPT ); Wed, 25 Feb 2015 04:37:19 -0500 Date: Wed, 25 Feb 2015 20:37:08 +1100 From: NeilBrown To: Tomi Valkeinen Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, GTA04 owners Subject: [PATCH] OMAP: DSS: DPI: disable vt-switch on suspend/resume. Message-ID: <20150225203708.0eb2fa96@notabene.brown> X-Mailer: Claws Mail 3.10.1-162-g4d0ed6 (GTK+ 2.24.25; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/gBHHyJuWbq6.K2o/BMsTJV/"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2464 Lines: 76 --Sig_/gBHHyJuWbq6.K2o/BMsTJV/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable These devices do not need to return to non-graphic console for suspend, so disable that option. This means there is less work to do in the suspend/resume cycle, making it smoother and cheaper. Signed-off-by: NeilBrown -- Hi Tomi, I wonder if you would consider this patch too. It works for me and removes pointless vt switching. I assume no-one would need or want that switching on suspend/resume but I guess I cannot be certain. Maybe a module-parameter could be used if there was any uncertainty. thanks, NeilBrown diff --git a/drivers/video/fbdev/omap2/dss/dpi.c b/drivers/video/fbdev/omap= 2/dss/dpi.c index f83e7b030249..4a29bab4ade3 100644 --- a/drivers/video/fbdev/omap2/dss/dpi.c +++ b/drivers/video/fbdev/omap2/dss/dpi.c @@ -32,6 +32,7 @@ #include #include #include +#include =20 #include