We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1396634 commit 060477dCopy full SHA for 060477d
1 file changed
drivers/gpu/drm/apple/dcp.c
@@ -565,6 +565,15 @@ EXPORT_SYMBOL(dcp_start);
565
566
static int dcp_enable_dp2hdmi_hpd(struct apple_dcp *dcp)
567
{
568
+ // check HPD state before enabling the edge triggered IRQ
569
+ if (dcp->hdmi_hpd) {
570
+ bool connected = gpiod_get_value_cansleep(dcp->hdmi_hpd);
571
+ dev_info(dcp->dev, "%s: DP2HDMI HPD connected:%d\n", __func__, connected);
572
+
573
+ if (connected)
574
+ dcp_dptx_connect(dcp, 0);
575
+ }
576
577
if (dcp->hdmi_hpd_irq)
578
enable_irq(dcp->hdmi_hpd_irq);
579
0 commit comments