drm/i915/psr: Avoid initializing PSR if there is no sink support.
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Wed, 3 Jan 2018 21:38:24 +0000 (13:38 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 12 Jan 2018 23:34:14 +0000 (15:34 -0800)
commitc9ef291a7e79ebc9fb1723090c12fae626e74c46
tree5196ad5ca38f2bdc5f31a4bedb049786631b1e3a
parent4371d89601c301fdbbdb9616c887ae77b38f6404
drm/i915/psr: Avoid initializing PSR if there is no sink support.

DPCD read for the eDP is complete by the time intel_psr_init() is
called, which means we can avoid initializing PSR structures and state
if there is no sink support.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180103213824.1405-3-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_psr.c