From patchwork Wed Dec 18 10:39:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 3369551 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 E8EEFC0D4A for ; Wed, 18 Dec 2013 10:41:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0527203E5 for ; Wed, 18 Dec 2013 10:41:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C439720268 for ; Wed, 18 Dec 2013 10:41:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754252Ab3LRKj4 (ORCPT ); Wed, 18 Dec 2013 05:39:56 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:61121 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089Ab3LRKjt (ORCPT ); Wed, 18 Dec 2013 05:39:49 -0500 Received: by mail-pb0-f50.google.com with SMTP id rr13so8256584pbb.23 for ; Wed, 18 Dec 2013 02:39:48 -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=FIBAQviFZ2Hh/qr1ybxO7UIHYpgLc601074j7oUDijI=; b=CZBRSNAvGfBaAmHKrgGyYIY12s0eJIcq/kZ2QEK8IMCipjPF0FNPq/TuO3hkgnjcWN YDDxqKC63dis105jA+3ES2/XK01V1lKj3pjhbJ3Cf3SUGipzddZVFJOojPyhcNiOIs9v VmUwKc5uSJZgg6gJxaHORSS4OWIpppJJonZbEYZkwC3v+GBSmjemq2PSi8liq3Z2gWKA 0W+86X09UXcx4y0p2HqiFoclseHCtNKJKfDy9X/O9Wc0lPA7aZdkBYfONZ6lkWOaE/M8 XyEbpLuh2Pj+HRK5Zc5UJ71urGoEVEGfEZt9DAoXMkiGmWjCcsNHK/NoLYLgv4psQgFt 63mA== X-Received: by 10.68.197.234 with SMTP id ix10mr32825766pbc.80.1387363188540; Wed, 18 Dec 2013 02:39:48 -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.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:39:47 -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 2/5] usb: ehci-s5p: enable async suspend/resume Date: Wed, 18 Dec 2013 16:09:31 +0530 Message-Id: <1387363174-25942-2-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 Exynos EHCI 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/ehci-exynos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index f7ce8e2..e5125cd 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -165,6 +165,8 @@ skip_phy: } device_wakeup_enable(hcd->self.controller); + device_enable_async_suspend(&pdev->dev); + platform_set_drvdata(pdev, hcd); return 0;