]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i2c: mxs: Do not disable the I2C SMBus quick mode
authorMarek Vasut <marex@denx.de>
Sun, 18 Nov 2012 05:25:08 +0000 (06:25 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Thu, 22 Nov 2012 22:03:15 +0000 (23:03 +0100)
There is no reason to disable the I2C SMBus quick mode on this
IP block. Enable it. This essentially fixes the problem with the
"i2c-detect" command for probing the bus.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-mxs.c

index 0670da79ee5e53cd0682dbdc1e7b311a196f73e1..6ed53da9e1f4dfab4ac21bc33f91938eec13fa58 100644 (file)
@@ -359,7 +359,7 @@ static int mxs_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
 
 static u32 mxs_i2c_func(struct i2c_adapter *adap)
 {
-       return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
+       return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
 }
 
 static irqreturn_t mxs_i2c_isr(int this_irq, void *dev_id)