HomeFreeBSD

Rewrite iicdev_writeto() to use a single buffer and a single iic_msg, rather

Description

Rewrite iicdev_writeto() to use a single buffer and a single iic_msg, rather
than effectively doing scatter/gather IO with a pair of iic_msgs that direct
the controller to do a single transfer with no bus STOP/START between the
two buffers. It turns out we have multiple i2c hardware drivers that don't
honor the NOSTOP and NOSTART flags; sometimes they just try to do the
transfers anyway, creating confusing failures or leading to corrupted data.

Details

Provenance
ianAuthored on
Parents
rS354972: Remove two obsolete comments that reference splhigh/splx.
Branches
Unknown
Tags
Unknown