From patchwork Wed Dec 18 10:39:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 3369531 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 65A1FC0D4A for ; Wed, 18 Dec 2013 10:41:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53B5720465 for ; Wed, 18 Dec 2013 10:41:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45B5C20445 for ; Wed, 18 Dec 2013 10:41:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752673Ab3LRKj6 (ORCPT ); Wed, 18 Dec 2013 05:39:58 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:47168 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753913Ab3LRKjy (ORCPT ); Wed, 18 Dec 2013 05:39:54 -0500 Received: by mail-pa0-f50.google.com with SMTP id kl14so5819568pab.9 for ; Wed, 18 Dec 2013 02:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hCyFk90zgrt7LPSQbT1UJjy/xBGOeAiEcvLI4ruChzo=; b=Bi817dkTmrbAHJDPqIISHaCHAu8Z5dul9eS0DSRm1YEnlrjB5qUzfbvb1Sh2Y/dSj8 Qbcm+pgdpReblR5oCwcaO9rp6eqViQyUNU/lPs1s8sPRc+WpkO3oW0Bbdlfh/3ddb89y DBiQFYdyh5bkXt7K0oh9lrzbq/0FPw7JwdSTxmLcUFEjq2OeNIMDPMO564OCvksR5SgR TzMf8kiBcLwkbo2eySx9MM2nxOXuy2txSeDNvKj9227oE7LWfIZp3KA6Y9F/5S8loOWB bFT93AuPbqr8Tyb5PiF2NfHOeyOWOs7Dv46jF4W7gg4QJdvOEpCh2VXbxa8LaDZGHolZ rHGg== X-Received: by 10.68.212.10 with SMTP id ng10mr5697979pbc.158.1387363193762; Wed, 18 Dec 2013 02:39:53 -0800 (PST) Received: from yuvaraj-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id vf7sm40135312pbc.5.2013.12.18.02.39.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:39:52 -0800 (PST) From: Yuvaraj Kumar C D To: stern@rowland.harvard.edu, gregkh@linuxfoundation.org, kgene.kim@samsung.com, linux-usb@vger.kernel.org, sarah.a.sharp@linux.intel.com, balbi@ti.com, gautam.vivek@samsung.com, joshi@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Bresticker , Yuvaraj Kumar C D Subject: [RFC 3/5] usb: xhci-plat: enable async suspend/resume Date: Wed, 18 Dec 2013 16:09:32 +0530 Message-Id: <1387363174-25942-3-git-send-email-yuvaraj.cd@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1387363174-25942-1-git-send-email-yuvaraj.cd@samsung.com> References: <1387363174-25942-1-git-send-email-yuvaraj.cd@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Julius Werner Signed-off-by: Yuvaraj Kumar C D --- 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 8abda5c..1bc1565 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -162,6 +162,8 @@ static int xhci_plat_probe(struct platform_device *pdev) if (ret) goto put_usb3_hcd; + device_enable_async_suspend(&pdev->dev); + return 0; put_usb3_hcd: