Skip to content

Commit 178f598

Browse files
committed
Add temporary fix for hang when quitting X
1 parent 1b9dde4 commit 178f598

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/video/bcm2708_fb.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/errno.h>
1919
#include <linux/string.h>
2020
#include <linux/slab.h>
21+
#include <linux/delay.h>
2122
#include <linux/mm.h>
2223
#include <linux/fb.h>
2324
#include <linux/init.h>
@@ -221,7 +222,9 @@ static int bcm2708_fb_set_par(struct fb_info *info)
221222
/* inform vc about new framebuffer */
222223
bcm_mailbox_write(MBOX_CHAN_FB, fb->dma);
223224

224-
/* TODO: replace fb driver with vchiq version */
225+
/* workaround occasional failure to read results. TODO: fix */
226+
msleep(10);
227+
225228
/* wait for response */
226229
bcm_mailbox_read(MBOX_CHAN_FB, &val);
227230

0 commit comments

Comments
 (0)