DCMD_I2C_BUS_RESET

#include <hw/i2c.h>

#define DCMD_I2C_BUS_RESET          __DION (_DCMD_I2C, 12)

The arguments to devctl() are:

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_I2C_BUS_RESET
dev_data_ptr NULL
n_bytes 0
dev_info_ptr NULL

The DCMD_I2C_BUS_RESET command resets the bus.

Input
None.
Output
None.

If an error occurs, the command returns:

EIO
The driver either doesn't support resetting the bus, or it couldn't reset the controller.