drm/i915/dsb: Check DSB engine status.
authorAnimesh Manna <animesh.manna@intel.com>
Fri, 20 Sep 2019 11:59:25 +0000 (17:29 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 23 Sep 2019 07:11:11 +0000 (10:11 +0300)
commita6e58d9a2e045e800ac54b838c05656f982c36fe
tree887eb95f747cbb0997e1719f6042d065471172d3
parentb27a96ad72fd706adc5dbbfd7bba76f698fe3875
drm/i915/dsb: Check DSB engine status.

As per bspec check for DSB status before programming any
of its register. Inline function added to check the dsb status.

Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190920115930.27829-6-animesh.manna@intel.com
drivers/gpu/drm/i915/display/intel_dsb.c
drivers/gpu/drm/i915/i915_reg.h