HomeFreeBSD

twsi: compile in support for debug messages, disabled by default

Description

twsi: compile in support for debug messages, disabled by default

Debug messages can now be enabled per driver instance via a new sysctl.
Also, debug messages in TWSI_READ and TWSI_WRITE require debug level
greater than 1 as they are mostly redundant because callers of those
functions already log most interesting results.

NB: the twsi drivers call their device iichb, so the new sysctl will
appear under dev.iichb.N.

(cherry picked from commit a2793d6182256b8edf647c11c642ad3c7c83809e)

Details

Provenance
avgAuthored on Nov 26 2021, 6:52 AM
Parents
rGc141cad41d94: twsi: remove write-only softc field
Branches
Unknown
Tags
Unknown