]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit017ff13fb38d9d9d83e3932b5d14e8c4ad46a9f8
tree7e93d41d7fc9ff0639986867074846b200f2b0e9
parent3f1bfc7bf1e1b512679839d4c3907bca80395f37
drm/i915/psr: Initialize PSR mutex even when sink is not reliable

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