OSDN Git Service

drm: bridge: adv7511: Enable DRM_BRIDGE_OP_HPD based on HPD interrupt
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 19 Apr 2022 14:24:53 +0000 (15:24 +0100)
committerRobert Foss <robert.foss@linaro.org>
Tue, 19 Apr 2022 16:06:46 +0000 (18:06 +0200)
commit04b19d32213654e54ec819b6ac033360f1551902
tree0bbfbb9f1578c7e9f79384d772e8fd901325861a
parent8ce4129e3de433ab924951eeb980e97e4c2cc03b
drm: bridge: adv7511: Enable DRM_BRIDGE_OP_HPD based on HPD interrupt

Connector detection using poll method won't work in case of bridge
attached to the encoder with the flag DRM_BRIDGE_ATTACH_NO_CONNECTOR, as
the code defaults to HPD.

Enable DRM_BRIDGE_OP_HPD based on HPD interrupt availability, so that
it will fall back to polling, if HPD is not available.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220419142453.48839-1-biju.das.jz@bp.renesas.com
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c