]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bxt: Sanitiy check the PHY lane power down status
authorImre Deak <imre.deak@intel.com>
Mon, 13 Jun 2016 13:44:37 +0000 (16:44 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 13 Jun 2016 15:46:10 +0000 (18:46 +0300)
commit7cfc803098f280268fa0fd3b835777f06f0f2d57
treeb0c9616b3abe0b91a02af6edeb132dc50975a5ac
parent5644414e39fdae1d55f4bde54b4bfdf4000cd080
drm/i915/bxt: Sanitiy check the PHY lane power down status

We can check the power state of the PHY data and common lanes as
reported by the PHY. Do this in case we need to debug problems where the
PHY gets stuck in an unexpected state.

Note that I only check these when the lanes are expected to be powered
on purpose, since it's not clear at what point the PHY power/clock gates
things.

v2:
- Don't report the encoder as disabled when the sanity check fails.
  (Ville)

CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465825477-32671-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ddi.c