Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp153973imm; Thu, 26 Jul 2018 15:57:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe3ZT748j+N97fZ8FpQhxHZr+6Y+mu7Q8xDe6ecrnDr+sKQa6XtuO6nx1iBZ/S0cl9nenZB X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr3958802pfn.97.1532645824984; Thu, 26 Jul 2018 15:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532645824; cv=none; d=google.com; s=arc-20160816; b=woGqBhw2wuf6inrVzcOIaWdeO63HguqHn0kaeEqrdlVp1lfSntg7fhWNrbycj2fZ7k jKk5Hbr3p6gtXSP3YAnDQlXWIA1lZLrv1hQxGhH9GjZ3OkKVTK79dck44uD0v/F2ZFcf L9atN4wXlWoXgpECQMrN+1v2xH7naYM23SOto/WHGh/arLTpynLZSVU3E7TZBZbpRvK0 SsY0oK3yuJcgGvLQWQNpOy5YBuU4jJLIlJLlWwrj7bGekY0TbHObVt7TTePnnZMVFnsD iykmUc4eGZnMpduXjW+qJM0Fcj6jYOqRmtfqpSVJ7vF33ItgxXArHYlFbYu9XYiIinWo KUTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=B+ViF1JjYMbTF6gXyeRxJ3LRFCPpPvWE0v13usRTUV0=; b=JtkdnET/UGBLcA138iAuWz9T4a3CoTMrDi4i76pJD8ojDx5Mg8oO7LzNK0Oyn0g5CJ /37N+jF0CloH25Rv0kBOdJgAVSe4CLyjCa9HUfMFs+sjlYW18I7EvZly1RJnz4ifbJZX NqgPxTBqlnSAVYGB+UXdeDYG1JL8tgI0qpen0iqjTHJAHpxCGCJCPq+6DkHlgW6KzfbV cYVSKmd0sJHeUpNSl1kuIGAp9b1ULh8JrVFHF2MnkhBmJgcVuzhMod1a10Jty+F6i2je 40cx+1URgrer4nIany4JbMAZoXexHgDu++NsVWGvG9tHQZIxkteTrEZaYlg7BRAPHwHt m/Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P0cMxS1O; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44-v6si2236961plb.376.2018.07.26.15.56.38; Thu, 26 Jul 2018 15:57:04 -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=@chromium.org header.s=google header.b=P0cMxS1O; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731846AbeG0AOJ (ORCPT + 99 others); Thu, 26 Jul 2018 20:14:09 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:45758 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731729AbeG0AOJ (ORCPT ); Thu, 26 Jul 2018 20:14:09 -0400 Received: by mail-pl0-f68.google.com with SMTP id j8-v6so1437755pll.12 for ; Thu, 26 Jul 2018 15:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=B+ViF1JjYMbTF6gXyeRxJ3LRFCPpPvWE0v13usRTUV0=; b=P0cMxS1OsT+cK7uW3MW08b5ER/NocR6nhJIR60ZIhlDAhtOvKbl/Z1nvQEQtS6HxdI bR5bTI5MWu0Pwrz44p0KxPsjL919Jfuh+BHOC6BcpLegswcN/pR/7cEcrxLeybXF+6z4 tE7TZvZJX8A17ZrRPCAdF5nYF067fCIyAG3ro= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=B+ViF1JjYMbTF6gXyeRxJ3LRFCPpPvWE0v13usRTUV0=; b=KoomY8t518AcyR+J3ACPqKQJJRKIZ454hd2e7NDRGntsA9MQ34uPD0BkuR9i1DPHH2 ccgl9YJelxZmbMOGF9JoTPhXBgNs8TEuCiKpj07FTC3ircSZO4mXqqNur1/gKO4+iKyf qGOupB4pdUdNXrqRxrpQ/BEAKZipMpOC+B88fxVkV36uiW6UbK7iOG6QAGy6T2wv0sQA LbJwvyXw880HkUgJ7dLLEwavmlN9uVzd1A3QwLan9T33opd+pVt0nmXF2y3T4dQNz5sL iXZep9dbyelNxVIZiks98LjcS/IJxx30DYYOEMOR4ywABg2UOxDRMfO6xhVjFe9VgxiY GQuA== X-Gm-Message-State: AOUpUlF2aRC32PXz4AhkATtEc6HHTbcb6x9P4qE9ZVKpKG4LYK6iPx94 kGJFgUlorsUJszf6rAbkefnNQ9aXt7g= X-Received: by 2002:a17:902:760b:: with SMTP id k11-v6mr3615951pll.91.1532645713196; Thu, 26 Jul 2018 15:55:13 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:0:1000:1501:f407:8d12:c205:7153]) by smtp.gmail.com with ESMTPSA id 84-v6sm8015348pfj.33.2018.07.26.15.55.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 15:55:12 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: wsa@the-dreams.de, linux-i2c@vger.kernel.org, dianders@chromium.org, dtor@chromium.org, venkateswarlu.v.vinjamuri@intel.corp-partner.google.com, Derek Basehore Subject: [PATCH] i2c: enable async suspend/resume on i2c devices Date: Thu, 26 Jul 2018 15:55:08 -0700 Message-Id: <20180726225508.74612-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.18.0.345.g5c9ce644c3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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