From 0d9f1748ac170ee6cfcce8f99fb65a9f157a9f29 Mon Sep 17 00:00:00 2001 From: Francesco Dolcini Date: Thu, 28 Mar 2024 14:45:32 +0100 Subject: Revert "Revert "drm/bridge: lt8912b: set hdmi or dvi mode"" This reverts commit 34a7716e046916220534baff7ec73341bf355aa6. At least one monitor is just not working fine without this HDMI bit set, so let's keep this aligned with mainline till we have a better understanding of the issue. Upstream-Status: Inappropriate [other] This is just making the code the same as it is upstream. Signed-off-by: Francesco Dolcini --- drivers/gpu/drm/bridge/lontium-lt8912b.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c index e841a8a4507a..2fdb52216b8a 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -341,6 +341,8 @@ static int lt8912_video_setup(struct lt8912 *lt) vsync_activehigh ? BIT(0) : 0); ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xab, BIT(1), hsync_activehigh ? BIT(1) : 0); + ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xb2, BIT(0), + lt->connector.display_info.is_hdmi ? BIT(0) : 0); return ret; } -- cgit v1.2.3