/[base]
ViewVC logotype

Revision 349310


Jump to revision: Previous Next
Author: ian
Date: Sun Jun 23 15:55:41 2019 UTC (5 years ago)
Changed paths: 3
Log Message:
MFC r348120:

Add a new 'tr' (transfer) mode to i2c(8) to support more i2c controllers.

Some i2c controller hardware does not provide a way to do individual START,
REPEAT-START and STOP actions on the i2c bus.  Instead, they can only do
a complete transfer as a single operation.  Typically they can do either
START-data-STOP or START-data-REPEATSTART-data-STOP.  In the i2c driver
framework, this corresponds to the iicbus_transfer method.  In the userland
interface they are initiated with the I2CRDWR ioctl command.

These changes add a new 'tr' mode which can be specified with the '-m'
command line option.  This mode should work on all hardware; when an i2c
controller driver doesn't directly support the iicbus_transfer method,
code in the i2c driver framework uses the lower-level START/REPEAT/STOP
methods to implement the transfer.  After this new mode has gotten some
testing on various hardware, the 'tr' mode should probably become the
new default mode.

PR:		189914


Changed paths

Path Details
Directorystable/12/ modified , props changed
Directorystable/12/usr.sbin/i2c/i2c.8 modified , text changed
Directorystable/12/usr.sbin/i2c/i2c.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27