HomeFreeBSD

[ig4] Add support for polled mode

Description

[ig4] Add support for polled mode

Currently ig4 internally depends on it's own interrupts and uses mtx_sleep()
to wait for them. That means it can not be used from any context where
sleeping is disallowed e.g. on cold boot, from DDB/KDB, from other device
driver's interrupt handlers and so on.

This change replaces sleeps with busy loops in cold boot and DDB cases.

Details

Provenance
wulfAuthored on
Parents
rS354300: [ig4] disable controller before initialization of clock counters
Branches
Unknown
Tags
Unknown