diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-04-10 00:36:42 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-04-15 18:18:45 +0200 |
commit | 43452335224bc0cbd605c6aee82b5c9c33e94cc6 (patch) | |
tree | b63a20048c0ae7527103035f6656b7f5ff8d533f /drivers/i2c/busses/i2c-designware-core.c | |
parent | 1451b91ffef5a2ac7df28a6d8fc270ccbee5d8ac (diff) |
i2c-designware: switch to use runtime PM autosuspend
Using autosuspend helps to reduce the resume latency in situations where
another I2C message is going to be started soon. For example with HID over
I2C touch panels we get several messages in a short period of time while
the touch panel is in use.
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/i2c-designware-core.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c index 7c10c5bd36dc..21fbb340ad66 100644 --- a/drivers/i2c/busses/i2c-designware-core.c +++ b/drivers/i2c/busses/i2c-designware-core.c @@ -600,7 +600,8 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) ret = -EIO; done: - pm_runtime_put(dev->dev); + pm_runtime_mark_last_busy(dev->dev); + pm_runtime_put_autosuspend(dev->dev); mutex_unlock(&dev->lock); return ret; |