Commit b3d604d4 authored by Lori Hikichi's avatar Lori Hikichi Committed by Wolfram Sang

i2c: iproc: Stop advertising support of SMBUS quick cmd

The driver does not support the SMBUS Quick command so remove the
flag that indicates that level of support.
By default the i2c_detect tool uses the quick command to try and
detect devices at some bus addresses.  If the quick command is used
then we will not detect the device, even though it is present.

Fixes: e6e5dd35 (i2c: iproc: Add Broadcom iProc I2C Driver)
Signed-off-by: default avatarLori Hikichi <lori.hikichi@broadcom.com>
Signed-off-by: default avatarRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Reviewed-by: default avatarRay Jui <ray.jui@broadcom.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent f08b2080
...@@ -790,7 +790,10 @@ static int bcm_iproc_i2c_xfer(struct i2c_adapter *adapter, ...@@ -790,7 +790,10 @@ static int bcm_iproc_i2c_xfer(struct i2c_adapter *adapter,
static uint32_t bcm_iproc_i2c_functionality(struct i2c_adapter *adap) static uint32_t bcm_iproc_i2c_functionality(struct i2c_adapter *adap)
{ {
u32 val = I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; u32 val;
/* We do not support the SMBUS Quick command */
val = I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
if (adap->algo->reg_slave) if (adap->algo->reg_slave)
val |= I2C_FUNC_SLAVE; val |= I2C_FUNC_SLAVE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment