diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-01-15 20:01:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-16 15:15:37 -0500 |
commit | 0b94190e1e60f96962b82d35729d7d44cf298ef8 (patch) | |
tree | 276ef97fa1f46799a1d93376daafa5d857a19906 /drivers | |
parent | 7e105057a34c83cea542dacc55ff0528bce67afa (diff) |
viafb: fix LCD hardware cursor regression
Although I'd consider this a hardware bug, as there is hardware out that
for whatever reason does not support hardware cursors on LCD output we
have to care about it in the driver. This fixes a regression (invisible
cursor) introduced by:
viafb: cleanup viafb_cursor
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Reported-by: Julian Wollrath <jwollrath@web.de>
Tested-by: Julian Wollrath <jwollrath@web.de>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Cc: Joseph Chan <JosephChan@via.com.tw>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/via/viafbdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index d8df17a7d5fc..a0004c17af6c 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c | |||
@@ -872,7 +872,9 @@ static int viafb_cursor(struct fb_info *info, struct fb_cursor *cursor) | |||
872 | if (info->flags & FBINFO_HWACCEL_DISABLED || info != viafbinfo) | 872 | if (info->flags & FBINFO_HWACCEL_DISABLED || info != viafbinfo) |
873 | return -ENODEV; | 873 | return -ENODEV; |
874 | 874 | ||
875 | if (chip_name == UNICHROME_CLE266 && viapar->iga_path == IGA2) | 875 | /* LCD ouput does not support hw cursors (at least on VN896) */ |
876 | if ((chip_name == UNICHROME_CLE266 && viapar->iga_path == IGA2) || | ||
877 | viafb_LCD_ON) | ||
876 | return -ENODEV; | 878 | return -ENODEV; |
877 | 879 | ||
878 | viafb_show_hw_cursor(info, HW_Cursor_OFF); | 880 | viafb_show_hw_cursor(info, HW_Cursor_OFF); |