On Mon, 12 Oct 2020 12:27:04 +0200, Kai Vehmanen wrote: > > In case HDA controller becomes active, but codec is runtime suspended, > jack detection is not successful and no interrupt is raised. This has > been observed with multiple Realtek codecs and HDA controllers from > different vendors. Bug does not occur if both codec and controller are > active, or both are in suspend. Bug can be easily hit on desktop systems > with no built-in speaker. > > The problem can be fixed by powering up the codec once after every > controller runtime resume. Even if codec goes back to suspend later, the > jack detection will continue to work. Add a flag to 'hda_codec' to > describe codecs that require this flow from the controller driver. > Modify __azx_runtime_resume() to use pm_request_resume() to make the > intent clearer. > > Mark all Realtek codecs with the new forced_resume flag. > > BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=209379 > Cc: Kailang Yang <kailang@xxxxxxxxxxx> > Co-developed-by: Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx> > Signed-off-by: Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx> > Signed-off-by: Kai Vehmanen <kai.vehmanen@xxxxxxxxxxxxxxx> This deserves for Cc-to-stable. I applied with it now. Thanks! Takashi