]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove intel_psr_is_enabled function.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 20 Nov 2014 10:22:08 +0000 (02:22 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Dec 2014 08:35:07 +0000 (09:35 +0100)
commit3b8972565cf9bc31d18f7e68eb4866e3daf3ce1a
tree3cdd774244d62d5d8d1b8bfd2d7b5d276ed4929a
parentc6c4b3acc0def5beb169d87cb60b799dd9e7b8ff
drm/i915: Remove intel_psr_is_enabled function.

This function was in use to check if PSR feature got enabled.
However on HSW and BDW we currently force psr exit by disabling
EDP_PSR_ENABLE bit at EDP_PSR_CTL(dev). So this function was actually
returning the active/inactive state that is different from the enable/disable
meaning and had the risk of false negative.

But anyway this check with DRRS was dangerous, since DRRS could try to get enabled
before PSR gets there. So let's just remove it for now.
A proper synchronization mechanism must be implemented later probably
using pipe config.

Cc: Daniel Vetter <daniel@ffwll.ch>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_psr.c