Skip to content

Commit baa1841

Browse files
wensmripard
authored andcommitted
drm: sun4i: hdmi: Fix inverted HPD result
When the extra HPD polling in sun4i_hdmi was removed, the result of HPD was accidentally inverted. Fix this by inverting the check. Fixes: bda8eaa ("drm: sun4i: hdmi: Remove extra HPD polling") Signed-off-by: Chen-Yu Tsai <[email protected]> Tested-by: Mans Rullgard <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6348dd2 commit baa1841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ sun4i_hdmi_connector_detect(struct drm_connector *connector, bool force)
260260
unsigned long reg;
261261

262262
reg = readl(hdmi->base + SUN4I_HDMI_HPD_REG);
263-
if (reg & SUN4I_HDMI_HPD_HIGH) {
263+
if (!(reg & SUN4I_HDMI_HPD_HIGH)) {
264264
cec_phys_addr_invalidate(hdmi->cec_adap);
265265
return connector_status_disconnected;
266266
}

0 commit comments

Comments
 (0)