]> 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)
commit2bc7194ca09272410e020ce1c6dc3e6b51827fd2
tree7e93d41d7fc9ff0639986867074846b200f2b0e9
parent8cc94f95125fc2f41244194d236fed13ceda9761
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