Message ID | 20211025213532.2349161-4-rajatja@google.com |
---|---|
State | Accepted |
Headers | show |
Series | i2c: Enable asynchronous suspend/resume | expand |
On Mon, Oct 25, 2021 at 02:35:31PM -0700, Rajat Jain wrote: > From: Derek Basehore <dbasehore@chromium.org> > > 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> Applied to for-next, thanks!
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 8d4f2be54e17..70d32efb68ef 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -1047,6 +1047,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) {