From: Marek Vasut Date: Sun, 18 Nov 2012 05:25:08 +0000 (+0100) Subject: i2c: mxs: Do not disable the I2C SMBus quick mode X-Git-Tag: v3.8-rc1~54^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f414059c66f57f610b71adf66fe20d8811bff8f;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git i2c: mxs: Do not disable the I2C SMBus quick mode 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 0670da7..6ed53da 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -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)