]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display: Fix warning callstack for imbalance wakeref
authorMitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Tue, 30 Aug 2022 08:51:58 +0000 (14:21 +0530)
committerImre Deak <imre.deak@intel.com>
Thu, 1 Sep 2022 10:47:38 +0000 (13:47 +0300)
commitbce7495641157b128bf8fdd0821f7daf50bbde1d
tree6b34db9a3fae22e997317336a1d54689d144e8e0
parent1dec816adf6982905786ce1ba432b27455751199
drm/i915/display: Fix warning callstack for imbalance wakeref

While executing i915_selftest, wakeref imbalance warning is seen
with i915_selftest failure.

Currently when Driver is suspended, while doing unregister
it is taking wakeref without resuming the device.
This patch is resuming the device, if driver is already suspended
and doing unregister process.

Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220830085158.577157-1-mitulkumar.ajitkumar.golani@intel.com
drivers/gpu/drm/i915/i915_driver.c