[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211025213532.2349161-4-rajatja@google.com>
Date: Mon, 25 Oct 2021 14:35:31 -0700
From: Rajat Jain <rajatja@...gle.com>
To: Jarkko Nikula <jarkko.nikula@...ux.intel.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Wolfram Sang <wsa@...nel.org>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
dtor@...gle.com
Cc: Derek Basehore <dbasehore@...omium.org>, rajatxjain@...il.com,
Rajat Jain <rajatja@...gle.com>
Subject: [PATCH 3/3] i2c: enable async suspend/resume on i2c client devices
From: Derek Basehore <dbasehore@...omium.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@...omium.org>
Signed-off-by: Rajat Jain <rajatja@...gle.com>
Tested-by: Jarkko Nikula <jarkko.nikula@...ux.intel.com>
---
v2: Add Jarkko's tested by
drivers/i2c/i2c-core-base.c | 1 +
1 file changed, 1 insertion(+)
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) {
--
2.33.0.1079.g6e70778dc9-goog
Powered by blists - more mailing lists