drm/msm/hdmi: Fix connector detect when there is no HPD gpio
authorArchit Taneja <architt@codeaurora.org>
Thu, 25 Feb 2016 05:52:37 +0000 (11:22 +0530)
committerRob Clark <robdclark@gmail.com>
Mon, 29 Feb 2016 14:48:30 +0000 (09:48 -0500)
commitc95ea16254c7affa1654804c8542d1f054a40f9f
tree4aca44d87da346803f54ae0dc24fa4e747b1bfe5
parentdc50f782c99a48bf49c0ca3e3f407f207d303d81
drm/msm/hdmi: Fix connector detect when there is no HPD gpio

Some platforms may not have a HPD gpio line to detect Hot Plug signal from
the connector. They need to rely only on reading REG_HDMI_HPD_INT_STATUS
for HPD.

Modify hdmi_connector_detect logic such that it checks for HPD only using
the status register if there is no HPD gpio.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/hdmi/hdmi_connector.c