[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VctrKtj8oa4OuhsAKcwsBXUnb_Qyfu3DiHB7ghcyfY9GQ@mail.gmail.com>
Date: Tue, 14 Aug 2018 20:52:00 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Derek Basehore <dbasehore@...omium.org>,
Jarkko Nikula <jarkko.nikula@...ux.intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Wolfram Sang <wsa@...-dreams.de>,
linux-i2c <linux-i2c@...r.kernel.org>,
Douglas Anderson <dianders@...omium.org>,
Dmitry Torokhov <dtor@...omium.org>,
venkateswarlu.v.vinjamuri@...el.corp-partner.google.com
Subject: Re: [PATCH] i2c: enable async suspend/resume on i2c devices
+Cc: Jarkko
On Fri, Jul 27, 2018 at 1:55 AM, Derek Basehore <dbasehore@...omium.org> wrote:
> 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@...omium.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
>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists