Skip to content

Commit b071ee5

Browse files
jannaumarcan
authored andcommitted
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 <[email protected]>
1 parent b28bc9f commit b071ee5

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
@@ -315,12 +315,16 @@ static irqreturn_t dcp_dp2hdmi_hpd(int irq, void *data)
315315
struct apple_dcp *dcp = data;
316316
bool connected = gpiod_get_value_cansleep(dcp->hdmi_hpd);
317317

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

320326
if (connected)
321327
dcp_dptx_connect(dcp, 0);
322-
else
323-
dcp_dptx_disconnect(dcp, 0);
324328

325329
return IRQ_HANDLED;
326330
}

0 commit comments

Comments
 (0)