Skip to content

Commit 2a17d7e

Browse files
Scot Doyletomba
authored andcommitted
fbcon: unconditionally initialize cursor blink interval
A sun7i-a20-olinuxino-micro fails to boot when kernel parameter vt.global_cursor_default=0. The value is copied to vc->vc_deccm causing the initialization of ops->cur_blink_jiffies to be skipped. Unconditionally initialize it. Reported-and-tested-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Scot Doyle <lkml14@scotdoyle.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent 37b617f commit 2a17d7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/video/console/fbcon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,10 +1306,11 @@ static void fbcon_cursor(struct vc_data *vc, int mode)
13061306
int y;
13071307
int c = scr_readw((u16 *) vc->vc_pos);
13081308

1309+
ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
1310+
13091311
if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1)
13101312
return;
13111313

1312-
ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
13131314
if (vc->vc_cursor_type & 0x10)
13141315
fbcon_del_cursor_timer(info);
13151316
else

0 commit comments

Comments
 (0)