OSDN Git Service

drm/i915: Fix the VLV/CHV DSI panel orientation hw readout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 22 Oct 2018 14:19:53 +0000 (17:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 13 Nov 2018 15:15:30 +0000 (17:15 +0200)
commit86ef615fa11b57ac44ee895136f05712ea905a39
tree561986f4d6f43ea6fe2ce6363996aae0d869d383
parentf255c624c11a5f58ff7c866f2bef6d850905dc20
drm/i915: Fix the VLV/CHV DSI panel orientation hw readout

Let's make sure the DSI port is actually on before we go
poking at the plane register to determine which way
it's rotated. Otherwise we could be looking at a plane
that is feeding a HDMI port for instance.

And in order to read the plane register we need the power
well to be on. Make sure that is indeed the case. We'll
also make sure the plane is actually enabled before we
trust the rotation bit to tell us the truth.

v2: s/intel_dsi/vlv_dsi/

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181022141953.3889-1-ville.syrjala@linux.intel.com
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #irc
drivers/gpu/drm/i915/vlv_dsi.c