drm/i915: use forced codec wake on all gen9+ platforms
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Tue, 24 Mar 2020 15:32:12 +0000 (17:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Mar 2020 15:33:12 +0000 (17:33 +0200)
commit1c664c15cf0a31784b217a84fa0128ce46f17a84
tree13269b23773f49e386e7953ac93ecc9eb578ca44
parent4ef10fe05ba0b08ce7029c07878afe3c8d5754d8
drm/i915: use forced codec wake on all gen9+ platforms

Commit 632f3ab95fe2 ("drm/i915/audio: add codec wakeup override
enabled/disable callback"), added logic to toggle Codec Wake on gen9.
This is used by audio driver when it resets the HDA controller.

It seems explicit toggling of the wakeline can help to fix problems
with probe failing on some gen12 platforms. And based on specs, there
is no reason why this programming sequence should not be applied to all
gen9+ platforms. No side-effects are seen on gen10/11. So apply
the wake-logic to all gen9+ platforms.

Link: https://github.com/thesofproject/linux/issues/1847
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200324153212.6303-1-kai.vehmanen@linux.intel.com
drivers/gpu/drm/i915/display/intel_audio.c