HomeFreeBSD

[ig4] Improve error detection

Description

[ig4] Improve error detection

Handle error bits of INTR_STAT and TX_ABORT registers.

Move interrupt clearing from interrupt handler to polling loop to get
common execution path with polled mode.

Do not clear interrupts with reading of IG4_REG_CLR_INTR register as
interrupts, triggered during the period from reg_read(IG4_REG_INTR_STAT)
to reg_read(IG4_REG_CLR_INTR) will be missed.
Instead, read each IG4_REG_CLR_* register separately.

Details

Provenance
wulfAuthored on
Parents
rS354313: [ig4] Convert polling loop from status-based to interrupt-based
Branches
Unknown
Tags
Unknown