diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-imx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 6055e92f0ac8..671d37c23f4c 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c | |||
@@ -225,11 +225,13 @@ static void i2c_imx_stop(struct imx_i2c_struct *i2c_imx) | |||
225 | writeb(temp, i2c_imx->base + IMX_I2C_I2CR); | 225 | writeb(temp, i2c_imx->base + IMX_I2C_I2CR); |
226 | i2c_imx->stopped = 1; | 226 | i2c_imx->stopped = 1; |
227 | } | 227 | } |
228 | /* | 228 | if (cpu_is_mx1()) { |
229 | * This delay caused by an i.MXL hardware bug. | 229 | /* |
230 | * If no (or too short) delay, no "STOP" bit will be generated. | 230 | * This delay caused by an i.MXL hardware bug. |
231 | */ | 231 | * If no (or too short) delay, no "STOP" bit will be generated. |
232 | udelay(i2c_imx->disable_delay); | 232 | */ |
233 | udelay(i2c_imx->disable_delay); | ||
234 | } | ||
233 | 235 | ||
234 | if (!i2c_imx->stopped) | 236 | if (!i2c_imx->stopped) |
235 | i2c_imx_bus_busy(i2c_imx, 0); | 237 | i2c_imx_bus_busy(i2c_imx, 0); |