All of lore.kernel.org
 help / color / mirror / Atom feed
* i810fb_blank
@ 2005-12-15 18:14 Lucas Correia Villa Real
  2005-12-15 23:15 ` i810fb_blank Antonino A. Daplas
  0 siblings, 1 reply; 6+ messages in thread
From: Lucas Correia Villa Real @ 2005-12-15 18:14 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Antonino A. Daplas

[-- Attachment #1: Type: text/plain, Size: 373 bytes --]

Hi!

While looking at i810fb_blank() on 2.4 and 2.6, I've seen that there's a 
difference on how pwr mask is handled: 2.4 unsets the pwr bit on 
FB_BLANK_VSYNC_SUSPEND and FB_BLANK_HSYNC_SUSPEND commands, 
while 2.6 turns that bit on. Was that modification expected, or was it a 
typo? The attached patch shows the code in question.

Thanks!

-- 
Lucas
powered by /dev/dsp

[-- Attachment #2: 2.6.14.3-i810-suspend.patch --]
[-- Type: text/x-diff, Size: 554 bytes --]

Signed-off-by: Lucas Correia Villa Real <lucasvr@gobolinux.org>

--- linux-2.6.14.3/drivers/video/i810/i810_main.c.orig	2005-12-03 16:44:06.000000000 -0200
+++ linux-2.6.14.3/drivers/video/i810/i810_main.c	2005-12-03 16:45:55.000000000 -0200
@@ -1359,12 +1359,12 @@ static int i810fb_blank (int blank_mode,
 		break;
 	case FB_BLANK_VSYNC_SUSPEND:
 		mode = STANDBY;
-		pwr |= 1;
+		pwr &= ~1;
 		scr_off = OFF;
 		break;
 	case FB_BLANK_HSYNC_SUSPEND:
 		mode = SUSPEND;
-		pwr |= 1;
+		pwr &= ~1;
 		scr_off = OFF;
 		break;
 	case FB_BLANK_POWERDOWN:

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-16 19:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-15 18:14 i810fb_blank Lucas Correia Villa Real
2005-12-15 23:15 ` i810fb_blank Antonino A. Daplas
2005-12-16  3:55   ` i810fb_blank Lucas Correia Villa Real
2005-12-16  6:00     ` Antonino A. Daplas
2005-12-16 18:10       ` Lucas Correia Villa Real
2005-12-16 19:10         ` Antonino A. Daplas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.