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

Commit ff2f974e authored by Jilai Wang's avatar Jilai Wang Committed by Rob Clark
Browse files

drm/msm/hdmi: rework HDMI IRQ handler



Disable the HPD interrupt when acking it, to avoid spurious
interrupt.

Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent e6d7a16f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -251,11 +251,11 @@ void hdmi_connector_irq(struct drm_connector *connector)
			(hpd_int_status & HDMI_HPD_INT_STATUS_INT)) {
		bool detected = !!(hpd_int_status & HDMI_HPD_INT_STATUS_CABLE_DETECTED);

		DBG("status=%04x, ctrl=%04x", hpd_int_status, hpd_int_ctrl);

		/* ack the irq: */
		/* ack & disable (temporarily) HPD events: */
		hdmi_write(hdmi, REG_HDMI_HPD_INT_CTRL,
				hpd_int_ctrl | HDMI_HPD_INT_CTRL_INT_ACK);
			HDMI_HPD_INT_CTRL_INT_ACK);

		DBG("status=%04x, ctrl=%04x", hpd_int_status, hpd_int_ctrl);

		/* detect disconnect if we are connected or visa versa: */
		hpd_int_ctrl = HDMI_HPD_INT_CTRL_INT_EN;