Skip to content

Commit a2cdb4e

Browse files
wensgregkh
authored andcommitted
drm: sun4i: hdmi: Fix inverted HPD result
[ Upstream commit baa1841 ] 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] Signed-off-by: Sasha Levin <[email protected]>
1 parent 988e5d2 commit a2cdb4e

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
@@ -263,7 +263,7 @@ sun4i_hdmi_connector_detect(struct drm_connector *connector, bool force)
263263
unsigned long reg;
264264

265265
reg = readl(hdmi->base + SUN4I_HDMI_HPD_REG);
266-
if (reg & SUN4I_HDMI_HPD_HIGH) {
266+
if (!(reg & SUN4I_HDMI_HPD_HIGH)) {
267267
cec_phys_addr_invalidate(hdmi->cec_adap);
268268
return connector_status_disconnected;
269269
}

0 commit comments

Comments
 (0)