]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf2e2e2b9139bb359e454fb9afca494549c45305
tree561986f4d6f43ea6fe2ce6363996aae0d869d383
parent9a852f36e6e33ef788f8b5e6daef6deac251f1b0
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