1 From e9c1588c44daa953240f7fedbf8100cf840414f5 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Sun, 13 Apr 2008 07:25:56 +0100
4 Subject: [PATCH] fix-glamofb-cmdqueue-timeout.patch
6 loglevl=9 can cause failure to init glamo-fb
7 problem seems to be too low timeout when text scrolling can
8 delay commandqueue going empty
10 Signed-off-by: Andy Green <andy@openmoko.com>
12 drivers/mfd/glamo/glamo-fb.c | 5 +++--
13 1 files changed, 3 insertions(+), 2 deletions(-)
15 diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
16 index f0d7600..87c7420 100644
17 --- a/drivers/mfd/glamo/glamo-fb.c
18 +++ b/drivers/mfd/glamo/glamo-fb.c
19 @@ -548,12 +548,13 @@ static int glamofb_cursor(struct fb_info *info, struct fb_cursor *cursor)
21 static inline int glamofb_cmdq_empty(struct glamofb_handle *gfb)
23 + /* DGCMdQempty -- 1 == command queue is empty */
24 return reg_read(gfb, GLAMO_REG_LCD_STATUS1) & (1 << 15);
27 void glamofb_cmd_mode(struct glamofb_handle *gfb, int on)
30 + int timeout = 20000;
32 dev_dbg(gfb->dev, "glamofb_cmd_mode(gfb=%p, on=%d)\n", gfb, on);
34 @@ -605,7 +606,7 @@ EXPORT_SYMBOL_GPL(glamofb_cmd_mode);
36 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val)
39 + int timeout = 20000;
41 dev_dbg(gfb->dev, "%s: waiting for cmdq empty\n",