From 4195c3b5e0c793c63f5d1340acaaa262f41e0f52 Mon Sep 17 00:00:00 2001 From: Sudarsan Ramesh Date: Tue, 4 May 2021 15:15:29 -0400 Subject: [PATCH] disp: msm: dp: fix reset edid segment and address during read This change fixes a regression related to resetting the edid segment and address when reading port edid introduced by 896cf4fd01a3f92975b7202175c6ae8e63494719 (disp: msm: dp: reset edid segment and address when reading port edid). Change-Id: Ie39fb9558d9f3206e4ded17b97018a966aab3a7c Signed-off-by: Sudarsan Ramesh --- msm/dp/dp_mst_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/dp/dp_mst_sim.c b/msm/dp/dp_mst_sim.c index 02a43f939c..67e6b7c361 100644 --- a/msm/dp/dp_mst_sim.c +++ b/msm/dp/dp_mst_sim.c @@ -212,7 +212,7 @@ static int dp_sim_read_edid(struct dp_sim_device *sim_dev, sim_dev->edid_seg = buf[0]; } else if (msg->address == 0x50) { sim_dev->edid_seg_int = sim_dev->edid_seg; - sim_dev->edid_addr = buf[0] + (sim_dev->edid_seg << 8); + sim_dev->edid_addr = buf[0]; sim_dev->edid_seg = 0; } }