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)
commit9aa320341e9a86c684ccf8c2e75ff07486d9bf46
tree6b34db9a3fae22e997317336a1d54689d144e8e0
parenta5810f551d0a8c83b4817b53a446bd115e7182ce
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