drm/bridge: analogix_dp: Improve panel on time
authorSean Paul <seanpaul@chromium.org>
Wed, 7 Sep 2016 11:23:15 +0000 (07:23 -0400)
committerArchit Taneja <architt@codeaurora.org>
Sat, 24 Sep 2016 06:26:35 +0000 (11:56 +0530)
commitf2600d08d4e8d211262b143e71d3a08f320e1e17
tree4cf23dcc6c284c04a15d6db76e89a39c99239bb8
parent8c77e2c2a48b5d52114fb179c3d7c21fd02be64d
drm/bridge: analogix_dp: Improve panel on time

In order to reduce the time required to turn on the panel, this patch
makes 2 assumptions:
1- In detect(): if there's a panel, we're connected.
2- In get_modes(): if there's a panel, let the panel driver decide if
   it should prepare/unprepare in order to get the modes.

The first is straightforward, and shouldn't need further explanation. The
second should eliminate the prepare/unprepare delays from get_modes() in
most cases, since panels generally hardcode their modes in the driver as
opposed to reading EDID. If a panel does need to read EDID, it should be
responsible for ensuring it's in a state in which it can.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c