mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] i2c: enable async suspend/resume on i2c devices
@ 2018-07-26 22:55 Derek Basehore
  2018-07-27 10:44 ` Andy Shevchenko
  2018-08-14 17:52 ` Andy Shevchenko
  0 siblings, 2 replies; 6+ messages in thread
From: Derek Basehore @ 2018-07-26 22:55 UTC (permalink / raw)
  To: linux-kernel
  Cc: wsa, linux-i2c, dianders, dtor, venkateswarlu.v.vinjamuri,
	Derek Basehore

This enables the async suspend property for i2c devices. This reduces
the suspend/resume time considerably on platforms with multiple i2c
devices (such as a trackpad or touchscreen).

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
---
 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 1ba40bb2b966..3382bb7e1dcc 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -749,6 +749,7 @@ i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info)
 	client->dev.of_node = info->of_node;
 	client->dev.fwnode = info->fwnode;
 
+	device_enable_async_suspend(&client->dev);
 	i2c_dev_set_name(adap, client, info);
 
 	if (info->properties) {
-- 
2.18.0.345.g5c9ce644c3-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <20200327151951.18111-1-ricardo.canuelo@collabora.com>]

end of thread, other threads:[~2020-04-08  5:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 22:55 [PATCH] i2c: enable async suspend/resume on i2c devices Derek Basehore
2018-07-27 10:44 ` Andy Shevchenko
2018-07-27 12:07   ` Hans de Goede
2018-08-14 17:52 ` Andy Shevchenko
     [not found] <20200327151951.18111-1-ricardo.canuelo@collabora.com>
     [not found] ` <20200327154345.GA3971@ninjato>
     [not found]   ` <CAGAzgsqJznZi83ijxCgQg463Q4AnwiNX-a0Q9+Og9MW5OJ4Vew@mail.gmail.com>
2020-03-29 12:49     ` Ezequiel Garcia
2020-04-08  5:06       ` dbasehore .

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®