drm/i915: Re-register PMIC bus access notifier on runtime resume
authorHans de Goede <j.w.r.degoede@gmail.com>
Tue, 14 Nov 2017 13:55:17 +0000 (14:55 +0100)
committerJani Nikula <jani.nikula@intel.com>
Tue, 21 Nov 2017 09:39:31 +0000 (11:39 +0200)
commit294cf1af8cf2eb0d1eced377fdfb9a2d3f0e8b42
tree6f44f2e3c9b5763d3e0ec4b7a51eff5c38d89632
parentf4359cedfb43b934f38c50d1604db21333abe57b
drm/i915: Re-register PMIC bus access notifier on runtime resume

intel_uncore_suspend() unregisters the uncore code's PMIC bus access
notifier and gets called on both normal and runtime suspend.

intel_uncore_resume_early() re-registers the notifier, but only on
normal resume. Add a new intel_uncore_runtime_resume() function which
only re-registers the notifier and call that on runtime resume.

Cc: stable@vger.kernel.org
Reported-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171114135518.15981-2-hdegoede@redhat.com
(cherry picked from commit bedf4d79c3654921839b62246b0965ddb308b201)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/intel_uncore.h