From patchwork Wed Dec 18 10:39:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 3369581 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 87D79C0D4A for ; Wed, 18 Dec 2013 10:42:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 700C4203E5 for ; Wed, 18 Dec 2013 10:42:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5574520268 for ; Wed, 18 Dec 2013 10:41:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753161Ab3LRKjs (ORCPT ); Wed, 18 Dec 2013 05:39:48 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:55776 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752099Ab3LRKjn (ORCPT ); Wed, 18 Dec 2013 05:39:43 -0500 Received: by mail-pd0-f174.google.com with SMTP id y13so7954748pdi.5 for ; Wed, 18 Dec 2013 02:39:42 -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; bh=YubZ7LL/WRNhinGSAYXLYAYVtq/+TWwVIT6n2L+6n1g=; b=lPlotoHMHyGFLJru4nchxtnP1znbL6ciez2u/Y2dP0bCoiyUghOhW7q90bjuQh2OIY U9m6ePvJXkutmhtrsay79P9HykvNJ65n4cVxadJEmE/oWAUkRYYfam9+5BGM19bCk7Kd 53M0/Xq2zy/8tclaRQmS7qrTrvysHO7KK0No537WrGgol1seK2OZaw4c/i2R1ShuiS+o XMropZ7S3UK7+7X88hk5Wzl+OVI1oxhYkIKHLlXfqmWWB5nStdzjQuUwMNpN5O4eAaSO zvJCtYn+ZZjE8AGvbGczR3OEDg6Mmyai1WIOn20un0MqizT7ZcBNIRy7xoL5Oopn/det kX7w== X-Received: by 10.68.239.70 with SMTP id vq6mr32579166pbc.152.1387363182825; Wed, 18 Dec 2013 02:39:42 -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.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:39:41 -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 1/5] usb: ohci-exynos: enable async suspend/resume Date: Wed, 18 Dec 2013 16:09:30 +0530 Message-Id: <1387363174-25942-1-git-send-email-yuvaraj.cd@samsung.com> X-Mailer: git-send-email 1.7.9.5 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 OHCI 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/ohci-exynos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c index 68588d8..faad2bdc 100644 --- a/drivers/usb/host/ohci-exynos.c +++ b/drivers/usb/host/ohci-exynos.c @@ -137,6 +137,8 @@ skip_phy: if (exynos_ohci->otg) exynos_ohci->otg->set_host(exynos_ohci->otg, &hcd->self); + device_enable_async_suspend(&pdev->dev); + platform_set_drvdata(pdev, hcd); exynos_ohci_phy_enable(pdev);