From c63f91f4dc20bdc40fbdf629949cfb8f5ff3e2ed Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Tue, 7 Jan 2025 12:18:32 +0800 Subject: [PATCH] soc/mediatek/common/dp: Initialize dptx_misc Initialize dptx_misc to prevent unexpected value set to REG_3034_DP_ENCODER0_P0. TEST=emerge-geralt coreboot && emerge-rauru coreboot Change-Id: I80e0f83f238d9b4c1ed0e1d1b219f4fb89a6cd22 Signed-off-by: Yidi Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/85877 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/common/dp/dptx_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/mediatek/common/dp/dptx_common.c b/src/soc/mediatek/common/dp/dptx_common.c index d835f57a85..0d078cdf5c 100644 --- a/src/soc/mediatek/common/dp/dptx_common.c +++ b/src/soc/mediatek/common/dp/dptx_common.c @@ -333,7 +333,7 @@ static void dptx_set_tu(struct mtk_dp *mtk_dp) static void dptx_set_misc(struct mtk_dp *mtk_dp) { u8 format, depth; - union misc_t dptx_misc; + union misc_t dptx_misc = { .cmisc = {0} }; format = mtk_dp->info.format; depth = mtk_dp->info.depth;