diff options
author | Rajat Jain <rajatja@google.com> | 2021-10-25 14:35:30 -0700 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-11-29 17:50:33 +0100 |
commit | d320ec7acc83a66cb1367f6cdee53177f07a9f5d (patch) | |
tree | 1220e4b85cfb1aa032bc1cc4b71910d3b3f35f16 /drivers/i2c/i2c-core-base.c | |
parent | 7c5b3c158b38dcf0c3c62657d9aa39decaf59cdc (diff) | |
download | linux-d320ec7acc83a66cb1367f6cdee53177f07a9f5d.tar.bz2 |
i2c: enable async suspend/resume for i2c adapters
Enable async suspend/resume of i2c adapters. It enormously helps with
reducing the resume time of systems (as much as 20%-40%) where I2C devices
can take significant time (100s of ms) to resume.
Signed-off-by: Rajat Jain <rajatja@google.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-core-base.c')
-rw-r--r-- | drivers/i2c/i2c-core-base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index f193f9058584..457504a0e567 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -1577,6 +1577,7 @@ static int i2c_register_adapter(struct i2c_adapter *adap) if (res) goto out_reg; + device_enable_async_suspend(&adap->dev); pm_runtime_no_callbacks(&adap->dev); pm_suspend_ignore_children(&adap->dev, true); pm_runtime_enable(&adap->dev); |