From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752171AbdAYRvn (ORCPT ); Wed, 25 Jan 2017 12:51:43 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57202 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750731AbdAYRvk (ORCPT ); Wed, 25 Jan 2017 12:51:40 -0500 From: Robert Foss To: 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 Cc: Robert Foss Subject: [PATCH i-g-t v7 1/1] usb: xhci: plat: Enable async suspend/resume Date: Wed, 25 Jan 2017 12:51:28 -0500 Message-Id: <20170125175128.20666-2-robert.foss@collabora.com> X-Mailer: git-send-email 2.11.0.453.g787f75f05 In-Reply-To: <20170125175128.20666-1-robert.foss@collabora.com> References: <20170125175128.20666-1-robert.foss@collabora.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 3cf8e120c620..4d6741a0d8f8 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -257,6 +257,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.453.g787f75f05