瀏覽代碼

Merge "disp: msm: dp: send hotplug event on mst sim port status update"

qctecmdr 2 年之前
父節點
當前提交
1e5f63da67
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      msm/dp/dp_debug.c

+ 5 - 6
msm/dp/dp_debug.c

@@ -662,13 +662,12 @@ static ssize_t dp_debug_write_mst_con_id(struct file *file,
 	if (!dp_panel)
 		goto out;
 
-	if (debug->dp_debug.sim_mode) {
-		dp_sim_update_port_status(debug->sim_bridge,
-				mst_port->port_num, status);
-	} else {
+	if (debug->dp_debug.sim_mode)
+		dp_sim_update_port_status(debug->sim_bridge, mst_port->port_num, status);
+	else
 		dp_panel->mst_hide = (status == connector_status_disconnected);
-		drm_kms_helper_hotplug_event(connector->dev);
-	}
+
+	drm_kms_helper_hotplug_event(connector->dev);
 
 out:
 	drm_connector_put(connector);