Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1200275 > unrolled thread

Re: [PATCH] fbcon: unconditionally initialize cursor blink interval

Started byPavel Machek <pavel@ucw.cz>
First post2015-08-04 22:40 +0200
Last post2015-08-10 16:30 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] fbcon: unconditionally initialize cursor blink interval Pavel Machek <pavel@ucw.cz> - 2015-08-04 22:40 +0200
    Re: [PATCH] fbcon: unconditionally initialize cursor blink  interval Scot Doyle <lkml14@scotdoyle.com> - 2015-08-10 16:10 +0200
      Re: [PATCH] fbcon: unconditionally initialize cursor blink interval Tomi Valkeinen <tomi.valkeinen@ti.com> - 2015-08-10 16:30 +0200

#1200275 — Re: [PATCH] fbcon: unconditionally initialize cursor blink interval

FromPavel Machek <pavel@ucw.cz>
Date2015-08-04 22:40 +0200
SubjectRe: [PATCH] fbcon: unconditionally initialize cursor blink interval
Message-ID<pTRa9-4Gn-1@gated-at.bofh.it>
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 <net147@gmail.com>
> Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

> 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/

[toc] | [next] | [standalone]


#1204306 — Re: [PATCH] fbcon: unconditionally initialize cursor blink interval

FromScot Doyle <lkml14@scotdoyle.com>
Date2015-08-10 16:10 +0200
SubjectRe: [PATCH] fbcon: unconditionally initialize cursor blink interval
Message-ID<pVVW1-7v-1@gated-at.bofh.it>
In reply to#1200275
On Tue, 4 Aug 2015, Pavel Machek wrote:
> 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 <net147@gmail.com>
> > Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
> 
> Acked-by: Pavel Machek <pavel@ucw.cz>
> 

Tomi, this one should also go in 4.2 fixes.

--
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/

[toc] | [prev] | [next] | [standalone]


#1204323

FromTomi Valkeinen <tomi.valkeinen@ti.com>
Date2015-08-10 16:30 +0200
Message-ID<pVWfo-uE-15@gated-at.bofh.it>
In reply to#1204306

[Multipart message — attachments visible in raw view] — view raw

On 10/08/15 17:05, Scot Doyle wrote:
> On Tue, 4 Aug 2015, Pavel Machek wrote:
>> 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 <net147@gmail.com>
>>> Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
>>
>> Acked-by: Pavel Machek <pavel@ucw.cz>
>>
> 
> Tomi, this one should also go in 4.2 fixes.

Thanks, I've queued for 4.2 fixes.

 Tomi

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web