]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/psr: Initialize PSR mutex even when sink is not reliable
authorJosé Roberto de Souza <jose.souza@intel.com>
Sat, 6 Apr 2019 00:51:11 +0000 (17:51 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 8 Apr 2019 17:39:11 +0000 (10:39 -0700)
Even when driver is reloaded and hits this scenario the PSR mutex
should be initialized, otherwise reading PSR debugfs status will
execute mutex_lock() over a mutex that was not initialized.

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190406005112.27205-3-jose.souza@intel.com
drivers/gpu/drm/i915/intel_psr.c

index 361d231c888bdad2337c56b825f209b2ee1c9b13..cc8b5be68e89365e816f52f08776cc69907b8f8d 100644 (file)
@@ -1230,7 +1230,6 @@ void intel_psr_init(struct drm_i915_private *dev_priv)
        if (val) {
                DRM_DEBUG_KMS("PSR interruption error set\n");
                dev_priv->psr.sink_not_reliable = true;
-               return;
        }
 
        /* Set link_standby x link_off defaults */