From 1fd7d9dc909d87eee31930842a8575a3bb05a3b3 Mon Sep 17 00:00:00 2001 From: Bo-Chen Chen Date: Tue, 10 Jan 2023 15:41:08 +0800 Subject: [PATCH] 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 Change-Id: I39d9e04e5908f669ae2a1a8ce8858b93cae20654 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71785 Reviewed-by: Yu-Ping Wu Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/mainboard/google/geralt/panel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/geralt/panel.c b/src/mainboard/google/geralt/panel.c index b5519432ef..3174870050 100644 --- a/src/mainboard/google/geralt/panel.c +++ b/src/mainboard/google/geralt/panel.c @@ -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;