]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: stop using is_cpu_edp() in intel_disable/post_disable_dp
authorImre Deak <imre.deak@intel.com>
Thu, 23 May 2013 16:39:40 +0000 (19:39 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:53:59 +0000 (20:53 +0200)
commitb50711f753d2052b07cb0bc03ba271b33626835d
treeacaceda4c8722c3d40684d03857e0faca40ce956
parent605c5b3bcf6128e6cd032a105f316d44c07a6fb2
drm/i915: stop using is_cpu_edp() in intel_disable/post_disable_dp

Based on e5328694ea7 - "drm/i915: disable the cpu edp port after the
cpu pipe" and the bspec disabling sequence for IVB and older it seems we
have to distinguish only the CPU vs. PCH port case, whether it's a DP or
eDP doesn't seem to matter. For IVB and older on the CPU side we can
only have eDP on port A, DP ports can only be on the PCH side. On VLV we
have only CPU side eDP/DP ports, no PCH. So the condition for the
disabling sequence we need for CPU ports is port == A || IS_VLV.

This allows us to remove is_cpu_edp() completely in a later patch.

v2:
- simplify (and fix) the condition for CPU side ports and adjust the
  commit message accordingly (Daniel)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c