From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752054AbdBULG7 (ORCPT ); Tue, 21 Feb 2017 06:06:59 -0500 Received: from mga14.intel.com ([192.55.52.115]:64260 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287AbdBULGu (ORCPT ); Tue, 21 Feb 2017 06:06:50 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,189,1484035200"; d="scan'208";a="1100560545" Subject: Re: [PATCH RESEND v8] usb: xhci: plat: Enable async suspend/resume To: Robert Foss , mathias.nyman@intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Julius Werner , Andrew Bresticker , Felipe Balbi , Brian Norris , Baolin Wang References: <20170220154826.23183-1-robert.foss@collabora.com> From: Mathias Nyman Message-ID: <58AC1FAC.1000701@linux.intel.com> Date: Tue, 21 Feb 2017 13:08:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20170220154826.23183-1-robert.foss@collabora.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.02.2017 17:48, Robert Foss wrote: > From: Andrew Bresticker > > USB host controllers can take a significant amount of time to suspend > and resume, adding several hundred miliseconds to the kernel resume > time. Since the XHCI controller has no outside dependencies (other than > clocks, which are suspended late/resumed early), allow it to suspend and > resume asynchronously. > > Signed-off-by: Andrew Bresticker > Tested-by: Andrew Bresticker > Tested-by: Robert Foss > Signed-off-by: Robert Foss > Reviewed-by: Baolin Wang > --- > > Changes since v8: > - Rebased on upstream/master > - Added r-b of Baolin Wang > > > drivers/usb/host/xhci-plat.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c > index e5834dd9bcde..8ef34fe4d5c0 100644 > --- a/drivers/usb/host/xhci-plat.c > +++ b/drivers/usb/host/xhci-plat.c > @@ -255,6 +255,8 @@ static int xhci_plat_probe(struct platform_device *pdev) > if (ret) > goto dealloc_usb2_hcd; > > + device_enable_async_suspend(&pdev->dev); > + > return 0; > Thanks, added to queue -Mathias