From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Subject: I2C_FUNC_SMBUS_QUICK on i2c-mxs Date: Mon, 27 Aug 2012 16:32:12 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: =?UTF-8?B?TWFyZWsgVmHFoXV0?= , Wolfram Sang , Sascha Hauer List-Id: linux-i2c@vger.kernel.org Hi, When using i2cdetect on a mx28 I get: $ i2cdetect 0 Error: Can't use SMBus Quick Write command on this bus (ISA bus?) Enabling I2C_FUNC_SMBUS_QUICK the error goes away: --- drivers/i2c/busses/i2c-mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 088c5c1..84484bb 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -322,7 +322,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) -- 1.7.9.5 Could anyone clarify whether I2C_FUNC_SMBUS_QUICK option could be turned on or not? Thanks, Fabio Estevam