Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a9437a8 authored by Rajkumar Subbiah's avatar Rajkumar Subbiah
Browse files

disp: msm: dp: fix simulated hpd_irq handling for real monitors



A mode switch on a real monitor can be triggered by forcing the new
mode using debugfs and initiating an hpd_irq. Due to a missing
check for simulator state, the current driver calls the hpd_irq
callback for simulator even for a real monitor. This change adds
this check.

Change-Id: I13480eccd27eac2f9df3dd766d0445c0a5ea9b2c
Signed-off-by: default avatarRajkumar Subbiah <rsubbia@codeaurora.org>
parent c7464588
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2221,7 +2221,8 @@ static void dp_mst_display_hpd_irq(void *dp_display,
	bool handled;

	if (info->mst_hpd_sim) {
		if (info->mst_sim_add_con || info->mst_sim_remove_con) {
		if (mst->simulator.mst_state && (info->mst_sim_add_con ||
				info->mst_sim_remove_con)) {
			dp_mst_sim_handle_hpd_irq(dp_display, info);

			/*