Skip to content

Commit e844e9b

Browse files
committed
drm: apple: dptx: Debounce HPD by simple msleep()
Not necessarily only a debounce but 500ms sleep in the HPD interrupt handler seems to make the modeset more reliable on M2* desktop devices. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 271d75d commit e844e9b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/dcp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ static irqreturn_t dcp_dp2hdmi_hpd(int irq, void *data)
329329
*/
330330
dev_info(dcp->dev, "DP2HDMI HPD irq, connected:%d\n", connected);
331331

332+
if (connected) {
333+
msleep(500);
334+
connected = gpiod_get_value_cansleep(dcp->hdmi_hpd);
335+
dev_info(dcp->dev, "DP2HDMI HPD irq, 500ms debounce: connected:%d\n", connected);
336+
}
337+
332338
if (connected)
333339
dcp_dptx_connect(dcp, 0);
334340

0 commit comments

Comments
 (0)