Browse Source

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

For MST Simulation use case, whenever the port status is updated on
an individual display, send a hotplug event to usermode to make
sure it is handled.

Change-Id: I959290f2c67378e057933356f3ffe692f8b858d7
Signed-off-by: Rajkumar Subbiah <[email protected]>
Rajkumar Subbiah 2 years ago
parent
commit
ba25a62e03
1 changed files with 5 additions and 6 deletions
  1. 5 6
      msm/dp/dp_debug.c

+ 5 - 6
msm/dp/dp_debug.c

@@ -660,13 +660,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);