Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478AbbKPPiD (ORCPT ); Mon, 16 Nov 2015 10:38:03 -0500 Received: from mga03.intel.com ([134.134.136.65]:54131 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751636AbbKPPh7 (ORCPT ); Mon, 16 Nov 2015 10:37:59 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,303,1444719600"; d="scan'208";a="839742995" Message-ID: <5649F83C.9060605@linux.intel.com> Date: Mon, 16 Nov 2015 23:37:32 +0800 From: "Fu, Zhonghui" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: wsa@the-dreams.de, wsa@the-dreams.de, jarkko.nikula@intel.com, mika.westerberg@intel.com CC: linux-i2c@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] i2c: enable i2c adapter to suspend/resume asynchronously References: <56039D22.8020907@linux.intel.com> In-Reply-To: <56039D22.8020907@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1445 Lines: 47 Any comments are welcome. Thanks, Zhonghui On 9/24/2015 2:50 PM, Fu, Zhonghui wrote: > Now, PM core supports asynchronous suspend/resume mode for devices > during system suspend/resume, and the power state transition of one > device may be completed in separate kernel thread. PM core ensures > all power state transition timing dependency between devices. This > patch enables i2c adapter to suspend/resume asynchronously. This > will take advantage of multicore and improve system suspend/resume > speed. > > Signed-off-by: Zhonghui Fu > --- > Changes in v2: > - Amend commit message. > > drivers/i2c/i2c-core.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c > index 5f89f1e..c273b55 100644 > --- a/drivers/i2c/i2c-core.c > +++ b/drivers/i2c/i2c-core.c > @@ -1528,6 +1528,8 @@ static int i2c_register_adapter(struct i2c_adapter *adap) > > pm_runtime_no_callbacks(&adap->dev); > > + device_enable_async_suspend(&adap->dev); > + > #ifdef CONFIG_I2C_COMPAT > res = class_compat_create_link(i2c_adapter_compat_class, &adap->dev, > adap->dev.parent); > -- 1.7.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/