1
0
Fork 0

MLK-20380: i2c: xenfront: fix i2cdetect bug

The bug is when using i2cdetect in DomU, some i2c device will be
skiped, fixed this through add I2C_FUNC_SMBUS_QUICK functionality.

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
pull/10/head
Flynn xu 2018-11-15 16:30:24 +08:00
parent 0827d5636a
commit f210076aad
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ static int i2cfront_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
static u32 i2cfront_func(struct i2c_adapter *adapter)
{
return I2C_FUNC_I2C | I2C_FUNC_SMBUS_BYTE_DATA |
I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_WORD_DATA |
I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_QUICK |
I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_I2C_BLOCK;
}