Quoting Kuogee Hsieh (2022-01-14 16:58:32)
@@ -1363,14 +1368,14 @@ static int dp_pm_suspend(struct device *dev)I thought we determined that core_initialized was always true here, so
if (dp_power_clk_status(dp->power, DP_CTRL_PM))
dp_ctrl_off_link_stream(dp->ctrl);
+ dp_display_host_phy_exit(dp);
+
+ /* host_init will be called at pm_resume */
dp_display_host_deinit(dp);
}
the if condition is redundant. Furthermore, removing that check allows
us to entirely remove the core_initialized variable from the code.