Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760300AbcLAVqd (ORCPT ); Thu, 1 Dec 2016 16:46:33 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58064 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759938AbcLAVqX (ORCPT ); Thu, 1 Dec 2016 16:46:23 -0500 From: Robert Foss To: robert.foss@collabora.com, mathias.nyman@intel.com, gregkh@linuxfoundation.org, Julius Werner , Andrew Bresticker , Felipe Balbi , Brian Norris , Baolin Wang Cc: linux-kernel@vger.kernel.org Subject: [PATCH v7 2/2] usb: xhci: plat: Enable async suspend/resume Date: Thu, 1 Dec 2016 16:46:04 -0500 Message-Id: <20161201214604.20717-3-robert.foss@collabora.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161201214604.20717-1-robert.foss@collabora.com> References: <20161201214604.20717-1-robert.foss@collabora.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 30 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 --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index ba4efe74f537..c35b7fe3c999 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -248,6 +248,7 @@ static int xhci_plat_probe(struct platform_device *pdev) pm_runtime_set_active(&pdev->dev); pm_runtime_enable(&pdev->dev); + device_enable_async_suspend(&pdev->dev); return 0; -- 2.11.0