From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Dooks Subject: [PATCH] FB: Fix resume path in S3C2410 framebuffer driver. Date: Mon, 19 Nov 2007 18:06:52 +0000 Message-ID: <20071119180725.620155899@fluff.org> References: <20071119180650.568288237@fluff.org> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1IuB23-0006hs-D7 for linux-fbdev-devel@lists.sourceforge.net; Mon, 19 Nov 2007 10:07:40 -0800 Received: from 87-194-8-8.bethere.co.uk ([87.194.8.8] helo=kira.home.fluff.org) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1IuB22-00021F-AS for linux-fbdev-devel@lists.sourceforge.net; Mon, 19 Nov 2007 10:07:38 -0800 Content-Disposition: inline; filename=simtec/simtec-drivers-fb-s3c2410-resume.patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: linux-fbdev-devel@lists.sourceforge.net Cc: vince@simtec.co.uk, Ben Dooks Ensure that the LCD engine is correctly re-initialised and the correct parameters passed ot s3c2410fb_init_registers. Signed-off-by: Ben Dooks Index: linux-2.6.24-rc3-fb1/drivers/video/s3c2410fb.c =================================================================== --- linux-2.6.24-rc3-fb1.orig/drivers/video/s3c2410fb.c +++ linux-2.6.24-rc3-fb1/drivers/video/s3c2410fb.c @@ -1026,7 +1026,11 @@ static int s3c2410fb_resume(struct platf clk_enable(info->clk); msleep(1); - s3c2410fb_init_registers(info); + s3c2410fb_init_registers(fbinfo); + + /* re-activate our display after resume */ + s3c2410fb_activate_var(fbinfo); + s3c2410fb_blank(FB_BLANK_UNBLANK, fbinfo); return 0; } -- Ben (ben@fluff.org, http://www.fluff.org/) 'a smiley only costs 4 bytes' ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/