HomeFreeBSD

sound/hda: fix interrupt handler endless loop after r362294

Description

sound/hda: fix interrupt handler endless loop after r362294

Not all interrupt sources that affect CIS bit were acknowledged.
Specifically, bits in STATESTS (aka WAKESTS) were left set.

The fix is to disable WAKEEN and clear STATESTS bits before the HDA
interrupt is enabled. This way we should never get any STATESTS bits.

I also added placeholders for all event bits that we currently do not
enable, do not handle and do not clear. This might get useful when / if
we enable any of them.

Reported by: kib (Apollo Lake hardware)
Tested by: kib (earlier, different change)
MFC after: 2 weeks
X-MFC with: r362294

Details

Provenance
avgAuthored on
Parents
rS362646: Temporarily skip flakey bin.sh.execution.functional_test.bg12 in CI
Branches
Unknown
Tags
Unknown