diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-04-10 00:36:41 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-04-15 18:18:14 +0200 |
commit | 1451b91ffef5a2ac7df28a6d8fc270ccbee5d8ac (patch) | |
tree | 4e157a6f97454837f7a2bd22862d4ec19567a91f /drivers/i2c/busses | |
parent | 3ca4ed8715a6677ce2cdd7aa471685e653b5114d (diff) | |
download | linux-1451b91ffef5a2ac7df28a6d8fc270ccbee5d8ac.tar.bz2 |
i2c-designware: use usleep_range() in the busy-loop
This is not an atomic context so there is no need to use mdelay() but
instead use usleep_range().
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c index 5cc4ebf29b0a..7c10c5bd36dc 100644 --- a/drivers/i2c/busses/i2c-designware-core.c +++ b/drivers/i2c/busses/i2c-designware-core.c @@ -355,7 +355,7 @@ static int i2c_dw_wait_bus_not_busy(struct dw_i2c_dev *dev) return -ETIMEDOUT; } timeout--; - mdelay(1); + usleep_range(1000, 1100); } return 0; |