drm: bridge: analogix/dp: move hpd detect to connector detect function
authorYakir Yang <ykk@rock-chips.com>
Mon, 15 Feb 2016 11:11:20 +0000 (19:11 +0800)
committerYakir Yang <ykk@rock-chips.com>
Tue, 5 Apr 2016 02:13:08 +0000 (10:13 +0800)
commit2b77a2918c5d7b0b6bc2f8b35ddc299cf9bfe401
treebfc2611016a499d1489529bcd6e26dc6b05a6a0d
parent5cff007c58b7103a7d6bb203a74eb3eb416c10e0
drm: bridge: analogix/dp: move hpd detect to connector detect function

This change just make a little clean to make code more like
drm core expect, move hdp detect code from bridge->enable(),
and place them into connector->detect().

Note: Gustavo Padovan try to remove the controller and phy
power on function in bind time at bellow commit:
drm/exynos: do not start enabling DP at bind() phase

But for now the connector status don't hardcode to connected,
need to operate dp phy in .detect function, so we need to revert
parts if Gustavo Padovan's changes, add phy poweron
function in bind time.

Tested-by: Caesar Wang <wxt@rock-chips.com>
Tested-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c