HomeFreeBSD

MFC r321583, r321584:

Description

MFC r321583, r321584:

Add a pair of convenience routines for doing simple "register" read/writes
on i2c devices, where the "register" can be any length.

Add support for tracking nested calls to iicbus_request/release_bus().
Usually it is sufficient to use iicbus_transfer_excl(), or one of the
higher-level convenience functions that use it, to reserve the bus for the
duration of each register access. Occasionally it is important that a
series of accesses or read-modify-write operations must be done without any
other intervening access to the device, to prevent corrupting state.

Details

Provenance
ianAuthored on
Parents
rS323445: Fix intermittency in refquota_002_pos from the ZFS test suite
Branches
Unknown
Tags
Unknown