Skip to content

Commit 7eaa5f4

Browse files
jannaumarcan
authored andcommitted
drm: apple: dcp: Fix resume with DPTX based display outputs
Signed-off-by: Janne Grunau <[email protected]>
1 parent 2a6c77d commit 7eaa5f4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/dcp.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,13 @@ static int dcp_platform_resume(struct device *dev)
10441044
if (dcp->hdmi_hpd_irq)
10451045
enable_irq(dcp->hdmi_hpd_irq);
10461046

1047+
if (dcp->hdmi_hpd) {
1048+
bool connected = gpiod_get_value_cansleep(dcp->hdmi_hpd);
1049+
dev_info(dcp->dev, "resume: HPD connected:%d\n", connected);
1050+
if (connected)
1051+
dcp_dptx_connect(dcp, 0);
1052+
}
1053+
10471054
return 0;
10481055
}
10491056

0 commit comments

Comments
 (0)