drm/bridge: analogix_dp: Ensure the panel is properly prepared/unprepared
authorSean Paul <seanpaul@chromium.org>
Mon, 8 Aug 2016 18:53:18 +0000 (14:53 -0400)
committerSean Paul <seanpaul@chromium.org>
Tue, 23 Aug 2016 15:44:31 +0000 (11:44 -0400)
commit0b8b059a75b08f85e3db843aa33461a6e0d3bb09
treefa55ea8a6f334843d832235a17b00125affe3b73
parentcb09b01dd3da0f75e7c12608d8bbc8b92388da2e
drm/bridge: analogix_dp: Ensure the panel is properly prepared/unprepared

Instead of just preparing the panel on bind, actually prepare/unprepare
during modeset/disable. The panel must be prepared in order to read hpd
status and edid, so we need to keep state around the prepares in order
to ensure we don't accidentally turn the panel off at the wrong time.

Reviewed-by: Yakir Yang <ykk@rock-chips.com>
Tested-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
drivers/gpu/drm/bridge/analogix/analogix_dp_core.h