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)
commite93da0a0137b14f94ab4f1b6d74ca7504e8cb065
treeb0c9616b3abe0b91a02af6edeb132dc50975a5ac
parent324513c0ef42af49dca6487c5d486b5cd47a9bd2
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