From: wdc Date: Tue, 6 May 2014 06:28:16 +0000 (+0800) Subject: i2c-core: set default i2c clk 100k, at i2c smbus transfer X-Git-Tag: firefly_0821_release~5363 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=36bc2f8d00fd50a249b63bb01b14aaf5d3c2815b;p=firefly-linux-kernel-4.4.55.git i2c-core: set default i2c clk 100k, at i2c smbus transfer --- diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 8ab40ff62b99..4aea35713aa1 100755 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -2126,11 +2126,17 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter *adapter, u16 addr, .flags = flags, .len = 1, .buf = msgbuf0, + #ifdef CONFIG_I2C_ROCKCHIP_COMPAT + .scl_rate = 100 * 1000, + #endif }, { .addr = addr, .flags = flags | I2C_M_RD, .len = 0, .buf = msgbuf1, + #ifdef CONFIG_I2C_ROCKCHIP_COMPAT + .scl_rate = 100 * 1000, + #endif }, };