Skip to content

Commit b3d604d

Browse files
Lori HikichiWolfram Sang
authored andcommitted
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: e6e5dd3 (i2c: iproc: Add Broadcom iProc I2C Driver) Signed-off-by: Lori Hikichi <[email protected]> Signed-off-by: Rayagonda Kokatanur <[email protected]> Reviewed-by: Ray Jui <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent f08b208 commit b3d604d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/i2c/busses/i2c-bcm-iproc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,10 @@ static int bcm_iproc_i2c_xfer(struct i2c_adapter *adapter,
790790

791791
static uint32_t bcm_iproc_i2c_functionality(struct i2c_adapter *adap)
792792
{
793-
u32 val = I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
793+
u32 val;
794+
795+
/* We do not support the SMBUS Quick command */
796+
val = I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
794797

795798
if (adap->algo->reg_slave)
796799
val |= I2C_FUNC_SLAVE;

0 commit comments

Comments
 (0)