Skip to content

Commit d998f16

Browse files
committed
drm: apple: HPD: Only act on connect IRQs
DCP notices the disconnects on its own and the parallel handling just results in confusion (both on DRM and developer side). Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 4b02100 commit d998f16

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/dcp.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,16 @@ static irqreturn_t dcp_dp2hdmi_hpd(int irq, void *data)
314314
struct apple_dcp *dcp = data;
315315
bool connected = gpiod_get_value_cansleep(dcp->hdmi_hpd);
316316

317-
dev_info(dcp->dev, "DP2HDMI HPD connected:%d\n", connected);
317+
/* do nothing on disconnect and trust that dcp detects it itself.
318+
* Parallel disconnect HPDs result drm disabling the CRTC even when it
319+
* should not.
320+
* The interrupt should be changed to rising but for now the disconnect
321+
* IRQs might be helpful for debugging.
322+
*/
323+
dev_info(dcp->dev, "DP2HDMI HPD irq, connected:%d\n", connected);
318324

319325
if (connected)
320326
dcp_dptx_connect(dcp, 0);
321-
else
322-
dcp_dptx_disconnect(dcp, 0);
323327

324328
return IRQ_HANDLED;
325329
}

0 commit comments

Comments
 (0)