From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fu, Zhonghui" Subject: Re: [PATCH] MMC/SDIO: enable SDIO device to suspend/resume asynchronously Date: Mon, 17 Aug 2015 11:26:37 +0800 Message-ID: <55D1546D.1070900@linux.intel.com> References: <55B9D4EF.2010704@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com ([134.134.136.24]:47503 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703AbbHQD0p (ORCPT ); Sun, 16 Aug 2015 23:26:45 -0400 In-Reply-To: <55B9D4EF.2010704@linux.intel.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ulf Hansson , Adrian Hunter , neilb@suse.de, Jaehoon Chung , afenkart@gmail.com, joe@perches.com Cc: linux-mmc , "linux-kernel@vger.kernel.org" Hi, Any comments are welcome. Thanks, Zhonghui On 2015/7/30 15:40, Fu, Zhonghui wrote: > Enable SDIO card and function device to suspend/resume asynchronously. > This can improve system suspend/resume speed. > > Signed-off-by: Zhonghui Fu > --- > drivers/mmc/core/sdio.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c > index b91abed..6719b77 100644 > --- a/drivers/mmc/core/sdio.c > +++ b/drivers/mmc/core/sdio.c > @@ -1106,6 +1106,8 @@ int mmc_attach_sdio(struct mmc_host *host) > pm_runtime_enable(&card->dev); > } > > + device_enable_async_suspend(&card->dev); > + > /* > * The number of functions on the card is encoded inside > * the ocr. > @@ -1126,6 +1128,8 @@ int mmc_attach_sdio(struct mmc_host *host) > */ > if (host->caps & MMC_CAP_POWER_OFF_CARD) > pm_runtime_enable(&card->sdio_func[i]->dev); > + > + device_enable_async_suspend(&card->sdio_func[i]->dev); > } > > /* > -- 1.7.1 >