mb/google/geralt: Keep booting even if MIPI panel not found

We should keep booting even failed to get the MIPI panel.

BUG=none
TEST=emerge-geralt coreboot;

Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Change-Id: I39d9e04e5908f669ae2a1a8ce8858b93cae20654
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71785
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Bo-Chen Chen 2023-01-10 15:41:08 +08:00 committed by Felix Held
parent f488a40120
commit 1fd7d9dc90
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ struct panel_description *get_active_panel(void)
/* We need to find init cmds for MIPI panel from CBFS */
get_mipi_cmd_from_cbfs(panel);
assert(panel->s);
if (!panel->s)
return NULL;
const struct edid *edid = &panel->s->edid;
const char *name = edid->ascii_string;