diff options
author | Derek Basehore <dbasehore@chromium.org> | 2021-10-25 14:35:31 -0700 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-11-29 17:50:34 +0100 |
commit | 172d931910e1db800f4e71e8ed92281b6f8c6ee2 (patch) | |
tree | b147c6916badc83d4f9048ab32f47f54e20c042f /drivers/i2c | |
parent | d320ec7acc83a66cb1367f6cdee53177f07a9f5d (diff) | |
download | linux-172d931910e1db800f4e71e8ed92281b6f8c6ee2.tar.bz2 |
i2c: enable async suspend/resume on i2c client devices
This enables the async suspend for i2c client devices. This reduces
the suspend/resume time considerably on platforms where i2c devices
can take a lot of time (hundreds of ms) to resume.
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
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')
-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 457504a0e567..1072a47ce775 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -1048,6 +1048,7 @@ i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *inf client->dev.of_node = of_node_get(info->of_node); client->dev.fwnode = info->fwnode; + device_enable_async_suspend(&client->dev); i2c_dev_set_name(adap, client, info); if (info->swnode) { |