Skip to content

Commit

Permalink
[display] Trigger extra blanking delay during bootup. Fixes JB#47170
Browse files Browse the repository at this point in the history
Originally init_done was tracked as a boolean true/false value. Later on
it was changed into a unknown/true/false tristate value. While making
these changes, the triggering condition for extra blanking delay used
immediately after bootup got broken in a way that did not manifest
itself for a long time.

Instead of waiting for init done before triggering extra blank delay,
disable the extra delay altogether if mce has been (re)started after
init done.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 10, 2019
1 parent 621aecd commit 04d806c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/display.c
Expand Up @@ -5012,7 +5012,7 @@ static bool mdy_blanking_afterboot_delay_start_p(void)
bool start = false;

/* Bootup has not yet finished */
if( mdy_init_done != TRISTATE_TRUE )
if( mdy_init_done == TRISTATE_TRUE )
goto DONE;

/* We are booting to USER mode */
Expand Down

0 comments on commit 04d806c

Please sign in to comment.