Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754223AbbHDUcy (ORCPT ); Tue, 4 Aug 2015 16:32:54 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53050 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752294AbbHDUcw (ORCPT ); Tue, 4 Aug 2015 16:32:52 -0400 Date: Tue, 4 Aug 2015 22:32:50 +0200 From: Pavel Machek To: Scot Doyle Cc: Tomi Valkeinen , Jean-Christophe Plagniol-Villard , Thierry Reding , Kevin Hilman , Greg Kroah-Hartman , Jiri Slaby , Geert Uytterhoeven , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fbcon: unconditionally initialize cursor blink interval Message-ID: <20150804203250.GA655@amd> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 36 On Tue 2015-08-04 12:33:32, Scot Doyle wrote: > 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 > Signed-off-by: Scot Doyle Acked-by: Pavel Machek > index 658c34b..1aaf893 100644 > --- a/drivers/video/console/fbcon.c > +++ b/drivers/video/console/fbcon.c > @@ -1306,10 +1306,11 @@ static void fbcon_cursor(struct vc_data *vc, int mode) > int y; > int c = scr_readw((u16 *) vc->vc_pos); > > + ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms); > + > if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1) > return; > > - ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms); > if (vc->vc_cursor_type & 0x10) > fbcon_del_cursor_timer(info); > else -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/