cc's added.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
From: Michael Hanselmann <hidden> Date: 2006-09-21 21:56:23
On Thu, Sep 21, 2006 at 12:37:42PM -0700, Andrew Morton wrote:
On Thu, 21 Sep 2006 14:19:52 +0200
Olaf Hering [off-list ref] wrote:
quoted
The bl_curve code has some room for improvement.
Agreed.
quoted
inst-sys:~ # dmesg
valkyriefb: vmode 13 does not support cmode 1.
Unable to handle kernel paging request for data at address 0x00000000
Faulting instruction address: 0xc02c7bd8
Seems like not all drivers use the framebuffer_alloc() function and
won't have an initialized mutex. But those don't have a backlight,
anyway.
What about the patch below? Does it work for you?
Signed-off-by: Michael Hanselmann <redacted>
---
diff -Nrup --exclude-from linux-exclude-from linux-2.6.18.orig/drivers/video/fbsysfs.c linux-2.6.18/drivers/video/fbsysfs.c
@@ -397,6 +397,12 @@ static ssize_t store_bl_curve(struct clau8tmp_curve[FB_BACKLIGHT_LEVELS];unsignedinti;+/* Some drivers don't use framebuffer_alloc(), but those also+*don'thavebacklights.+*/+if(!fb_info||!fb_info->bl_dev)+return-ENODEV;+if(count!=(FB_BACKLIGHT_LEVELS/8*24))return-EINVAL;
@@ -430,6 +436,12 @@ static ssize_t show_bl_curve(struct classsize_tlen=0;unsignedinti;+/* Some drivers don't use framebuffer_alloc(), but those also+*don'thavebacklights.+*/+if(!fb_info||!fb_info->bl_dev)+return-ENODEV;+mutex_lock(&fb_info->bl_mutex);for(i=0;i<FB_BACKLIGHT_LEVELS;i+=8)len+=snprintf(&buf[len],PAGE_SIZE,
Still looks like a bit of a mess, but I assume that's expected.
Michael, I take it that patch was final?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV