Check the hotplug gpio in the hpd function so we know when it's
asserted. This fixes the return value of the is_connected callback.
BUG=chrome-os-partner:16280
TEST=None
Change-Id: I1ab0c7d830ecdc7b7f38ffd81895038978e4e57a
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/38319
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
{
int timeout_loop = 0;
+ if (gpio_is_valid(dp->hpd_gpio))
+ return !gpio_get_value(dp->hpd_gpio);
+
while (exynos_dp_get_plug_in_status(dp) != 0) {
timeout_loop++;
if (DP_TIMEOUT_LOOP_COUNT < timeout_loop) {