]> asedeno.scripts.mit.edu Git - linux.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)
commit98c0d19ec72cd75ff85f9e84c52d11deb3c82032
tree7e93d41d7fc9ff0639986867074846b200f2b0e9
parentc0f6ffb2cd6a99ace18e7e195048381d6185cfcb
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