drm/i915: PSR simplify port and link standby checks.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 1 Feb 2016 20:02:06 +0000 (12:02 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 1 Feb 2016 20:03:36 +0000 (12:03 -0800)
commitdc9b5a0c631115118267255837ac9df682fb79d1
treefe09893585fef5601106a95a6418d54069981457
parenta41c8882592fb80458959b10e37632ce030b68ca
drm/i915: PSR simplify port and link standby checks.

Current code not just block link_standby for non DDI platforms but also
block PSR from work on other ports B/C/D/E.

So, besides change any behaviour let's just fix the mess a bit here and
reuse HSW check to block the other ports and reduce the second if only to
link stadnby request.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
drivers/gpu/drm/i915/intel_psr.c