From: Chris Wright Date: Sat, 25 Feb 2006 01:15:39 +0000 (-0800) Subject: gbefb fix colors when depth is set with fbset, fwd from akpm X-Git-Tag: v2.6.15.5~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c89adf50130245d60edddbbc284d8fa4a8d153e1;p=thirdparty%2Fkernel%2Fstable-queue.git gbefb fix colors when depth is set with fbset, fwd from akpm --- diff --git a/queue/gbefb-ip32-gbefb-depth-change-fix.patch b/queue/gbefb-ip32-gbefb-depth-change-fix.patch new file mode 100644 index 00000000000..5905bd845c0 --- /dev/null +++ b/queue/gbefb-ip32-gbefb-depth-change-fix.patch @@ -0,0 +1,43 @@ +From stable-bounces@linux.kernel.org Fri Feb 24 13:09:18 2006 +Date: Fri, 24 Feb 2006 13:04:15 -0800 +From: akpm@osdl.org +To: torvalds@osdl.org +Cc: adaplas@pol.net, milang@tal.org, stable@kernel.org, tbm@cyrius.com +Subject: [PATCH] gbefb: IP32 gbefb depth change fix + + +From: Kaj-Michael Lang + +The gbefb driver does not update the framebuffer layers visual setting when +depth is changed with fbset, resulting in strange colors (very dark blue in +16-bit, almost black in 24-bit). + +Signed-off-by: Kaj-Michael Lang +Signed-off-by: Martin Michlmayr +Signed-off-by: Antonino Daplas +Cc: +Signed-off-by: Andrew Morton +Signed-off-by: Chris Wright +--- + + drivers/video/gbefb.c | 3 +++ + 1 files changed, 3 insertions(+) + +--- linux-2.6.15.4.orig/drivers/video/gbefb.c ++++ linux-2.6.15.4/drivers/video/gbefb.c +@@ -656,12 +656,15 @@ static int gbefb_set_par(struct fb_info + switch (bytesPerPixel) { + case 1: + SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_I8); ++ info->fix.visual = FB_VISUAL_PSEUDOCOLOR; + break; + case 2: + SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_ARGB5); ++ info->fix.visual = FB_VISUAL_TRUECOLOR; + break; + case 4: + SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_RGB8); ++ info->fix.visual = FB_VISUAL_TRUECOLOR; + break; + } + SET_GBE_FIELD(WID, BUF, val, GBE_BMODE_BOTH); diff --git a/queue/series b/queue/series index 565468a8031..23d0a4a1c27 100644 --- a/queue/series +++ b/queue/series @@ -25,3 +25,4 @@ gbefb-set-default-of-fb_gbe_mem-to-4-mb.patch dm-missing-bdput-thaw_bdev-at-removal.patch dm-free-minor-after-unlink-gendisk.patch ramfs-update-dir-mtime-and-ctime.patch +gbefb-ip32-gbefb-depth-change-fix.patch