Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4811284ooa; Tue, 14 Aug 2018 10:53:08 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwME1QSh+D86jDNFNCS1wO7dTkP5kaC0YzypRU5vXy42pgrtavAzp22qN70wiTMbHnlICSD X-Received: by 2002:a17:902:7898:: with SMTP id q24-v6mr20826390pll.222.1534269188592; Tue, 14 Aug 2018 10:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534269188; cv=none; d=google.com; s=arc-20160816; b=L0oYCA+HKMnMJJS3IxLz5d7oDyZNxq515I9gqXPSzLwbJyPmZ0in37UdpnmT0el7ed aw5poVTGmU0Q4NKiek2BlPklRQQNDQuSSCYudjHV+4XgA2X73lq5h2wUoA36HPCb2OJa 6jJLXS0cCvCgHpow+pszDl5KDPauUZOs1GRcjXvlyytgrhEY2T2qiyJWK0dRDmimCulJ AlgoR1gSNmMIqQk/V8UGYF6OtQcb6nvOGLbXV1rUSIRNzoSxXNI5RejM8c8bjTe5p3Ie pCVrpE6u0gjb1dPyLvMJaVu7G5mn+s3W4+/JDr1ui1cPwoLjk+APpUCnVmDGvPwu973n Axcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ngbhZBfRkPNe4/rud4/QN9vbFnnUBPIFn9+vOqA0G7s=; b=c2VXuwggySzjybeHGtmwqbn8Ffws2yZ79PGs4rfjv1zHgkcQNSGURklohqMvFWJYXy miafnKUX1+Y1llI+VHd6CBU6V1uZUscYM7WpT3RfF/jj1dP7vPha6J3cwg+BESDfbVZU qmZ5zjbdtzj/QPR1682Jw9vXs8oQ/W4qhFVVRrBzV62kjqEBLvJZ7ND/i9m80Y++2a0A +5pX7S+TfDB/MMeieTNehuiao44HlLMkDKLihMSrhf+op5gvZePjBI4DTWVKoCcYP8jK KOQshQEV6lWWZdvfpL0VJDa6k3NW488N2ORWpEDPUtFCM0FMWE5k+EereCP4MlziF1mK yOLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tv2fauzp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17-v6si18843900pge.494.2018.08.14.10.52.53; Tue, 14 Aug 2018 10:53:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tv2fauzp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389500AbeHNUkP (ORCPT + 99 others); Tue, 14 Aug 2018 16:40:15 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:46824 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389105AbeHNUkP (ORCPT ); Tue, 14 Aug 2018 16:40:15 -0400 Received: by mail-qk0-f194.google.com with SMTP id 191-v6so13958163qki.13; Tue, 14 Aug 2018 10:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ngbhZBfRkPNe4/rud4/QN9vbFnnUBPIFn9+vOqA0G7s=; b=Tv2fauzpNgTDq7o616J5lIBgJZFPcgw3skMueblIUj1/hLRf/mZo925lRQ0h5swiL8 yZ0fpK0TEiX2Tiec7s8Eb8GBnAOHaZo9OYj/h6xBaaXs9hdtsWmVjcVwdKRmLMNhZPfz nROex1O+mjc8sl8f9/Y5zDohM6UYvbalC6LV0EVe9kWNzxPiI6f0ZJmZ2SPNzjFXMsjo nW1qgInHwIt916lBH+1JvSvV2Mu6qTLAG+urWz1b2PIWiPV8Dl3iultWX0zxCe9eA4fo FNTGDITX8EmjKnO5cUaSbsDwVc64KZqME3TUwekCtMG4NbyeCfXLJgajI13u3wt3eNmG RkWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ngbhZBfRkPNe4/rud4/QN9vbFnnUBPIFn9+vOqA0G7s=; b=DHmd1PrussE3cenbVei8Lk0cWMaIlMZ7l1CLR8N6oxsCuEN3j6pnhbDTBx+wWRBF8g WBFFWCTWK5gfQCpfxQcHKeVDP647FQcmi1vSCmwluI7kypnjWuYVQqPCZBVYl5RzKs+H oqoLjxlTLimC4Tce1nwN0rpCrghq0K+Rg0EYGa1BVGgx7DvNz0/bikECiuL0nqQz2Fw4 aSvnQ5/xuJHJFXYM6VfybrEf97nXChYRfiIqMywDzIg18oPwah+2bZevXEvRQ9VvhWyP bD1NhwP3T3+WdVG4ZcTSQpgS4ttwAhe8mtHaWbyIjr0fSkyp8xATe58S50F3uDeIrbc1 46qQ== X-Gm-Message-State: AOUpUlFpIbi00dCxJrnk0biveBf6g7Cs0nAYqH6l343eKPlvndAx7Nii A2E/qtOvZcXs5gwtkvkPcTzWBMlRJE9LkuC68YcbPe16 X-Received: by 2002:a37:5c44:: with SMTP id q65-v6mr20121779qkb.97.1534269121371; Tue, 14 Aug 2018 10:52:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9c4a:0:0:0:0:0 with HTTP; Tue, 14 Aug 2018 10:52:00 -0700 (PDT) In-Reply-To: <20180726225508.74612-1-dbasehore@chromium.org> References: <20180726225508.74612-1-dbasehore@chromium.org> From: Andy Shevchenko Date: Tue, 14 Aug 2018 20:52:00 +0300 Message-ID: Subject: Re: [PATCH] i2c: enable async suspend/resume on i2c devices To: Derek Basehore , Jarkko Nikula Cc: Linux Kernel Mailing List , Wolfram Sang , linux-i2c , Douglas Anderson , Dmitry Torokhov , venkateswarlu.v.vinjamuri@intel.corp-partner.google.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Cc: Jarkko On Fri, Jul 27, 2018 at 1:55 AM, Derek Basehore 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 > --- > 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