From 0f011042eced1a2c732ded0ea5febe2b8875f88a Mon Sep 17 00:00:00 2001 From: Anand Tarakh Date: Wed, 20 Sep 2023 10:45:09 +0530 Subject: [PATCH] disp: msm: dsi: avoid restoring bit clk & front porches during set mode Suppose there's a mode change in Nth commit and N+1th commit mode change request for dynamic clock came even before the Nth commit mode is set in DSI. Now, restoring the bit clock and porches during mode set of Nth commit will update the clock and porches according to the new dynamic clock request which should have actually been handled in N+1th commit mode set and this can lead to DSI underflow /overflow. Avoid restoring bit clock during bridge enable as it is already taken care during bridge mode fixup. Change-Id: Ieecb0020a77f5e082a8b9da0ecf461acdbe89e0c Signed-off-by: Anand Tarakh --- msm/dsi/dsi_display.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 84480e3f52..3055f4cf5f 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -7854,12 +7854,6 @@ int dsi_display_set_mode(struct dsi_display *display, } } - rc = dsi_display_restore_bit_clk(display, &adj_mode); - if (rc) { - DSI_ERR("[%s] bit clk rate cannot be restored\n", display->name); - goto error; - } - rc = dsi_display_validate_mode_set(display, &adj_mode, flags); if (rc) { DSI_ERR("[%s] mode cannot be set\n", display->name);