mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Lessen debug out and make sure init timeout is seen in any case
This commit is contained in:
parent
038c5d7602
commit
06ea622d59
|
@ -468,22 +468,19 @@ static void uw_kbd_bl_init_ready_check_work_func(struct work_struct *work)
|
||||||
uw_prev_colors[uw_prev_colors_index] = (uw_cur_red << 0x10) | (uw_cur_green << 0x08) | uw_cur_blue;
|
uw_prev_colors[uw_prev_colors_index] = (uw_cur_red << 0x10) | (uw_cur_green << 0x08) | uw_cur_blue;
|
||||||
uw_prev_colors_index = (uw_prev_colors_index + 1) % uw_prev_colors_size;
|
uw_prev_colors_index = (uw_prev_colors_index + 1) % uw_prev_colors_size;
|
||||||
|
|
||||||
TUXEDO_DEBUG("uw kbd bl check count %d\n", uw_kbd_bl_check_count);
|
|
||||||
|
|
||||||
prev_colors_same = true;
|
prev_colors_same = true;
|
||||||
for (i = 1; i < uw_prev_colors_size; ++i) {
|
for (i = 1; i < uw_prev_colors_size; ++i) {
|
||||||
if (uw_prev_colors[i-1] != uw_prev_colors[i]) prev_colors_same = false;
|
if (uw_prev_colors[i-1] != uw_prev_colors[i]) prev_colors_same = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prev_colors_same) {
|
if (prev_colors_same) {
|
||||||
TUXEDO_DEBUG("uw kbd bl init\n");
|
|
||||||
uw_kbd_bl_init_set();
|
uw_kbd_bl_init_set();
|
||||||
del_timer(&uw_kbd_bl_init_timer);
|
del_timer(&uw_kbd_bl_init_timer);
|
||||||
} else {
|
} else {
|
||||||
if (uw_kbd_bl_check_count != 0) {
|
if (uw_kbd_bl_check_count != 0) {
|
||||||
mod_timer(&uw_kbd_bl_init_timer, jiffies + msecs_to_jiffies(uw_kbd_bl_init_check_interval_ms));
|
mod_timer(&uw_kbd_bl_init_timer, jiffies + msecs_to_jiffies(uw_kbd_bl_init_check_interval_ms));
|
||||||
} else {
|
} else {
|
||||||
TUXEDO_DEBUG("uw kbd bl init check timeout\n");
|
TUXEDO_INFO("uw kbd init timeout, failed to detect end of boot animation\n");
|
||||||
del_timer(&uw_kbd_bl_init_timer);
|
del_timer(&uw_kbd_bl_init_timer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue