From patchwork Wed Dec 18 10:39:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 3369521 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 340269F380 for ; Wed, 18 Dec 2013 10:41:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 01E52203E5 for ; Wed, 18 Dec 2013 10:41:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CAFA220268 for ; Wed, 18 Dec 2013 10:41:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754445Ab3LRKkE (ORCPT ); Wed, 18 Dec 2013 05:40:04 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35426 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754389Ab3LRKkA (ORCPT ); Wed, 18 Dec 2013 05:40:00 -0500 Received: by mail-pa0-f44.google.com with SMTP id fa1so5776523pad.31 for ; Wed, 18 Dec 2013 02:39:59 -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=04VRmwqo/mdy47kqKntr/eWeo9cFHcwNpkNBIoCz2aw=; b=bquHJNpS6zfuw9b/klNqzWpwZ7Klz8O1TgEb54t9btFeA/YeY9LVoMC/XlpjRQAE5M imBxTwjtlqGA5B2sABLQUjH38v48mEHPabGwq6Q2Y7i7l+TvTdD7y4ShITk7derdAWW0 PfzJQ7y4X/BOXVZIE4k6+gRX2KcpLx2vEvQDMtl9t3WR5I5OoNKAz/e/5I+0mbFNKK0l v7vaH0sKoTCdz3jRvwtFMk7tVIx67CaxrJHsLDV+UxmabIcefE+nBT0/thaf74VJaAZv BVV2P7O6dDk56GEPHSpwNKieccSEbkss+mGvf7v59gxpyFGV8KpfcTacEcCTgylWINR3 lWcQ== X-Received: by 10.66.184.168 with SMTP id ev8mr32724510pac.152.1387363199468; Wed, 18 Dec 2013 02:39:59 -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.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:39:58 -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 4/5] usb: dwc3-exynos: enable async suspend/resume Date: Wed, 18 Dec 2013 16:09:33 +0530 Message-Id: <1387363174-25942-4-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 In addition to enabling async suspend/resume on the xhci-plat device, we must enable it for the dwc3-exynos platform device in order to make the full USB stack resume asynchronously. Like the xhci-plat, ehci-s5p, and ohci-exynos drivers, there are no outside dependencies which would make resuming the dwc3-exynos driver asynchronously unsafe. Signed-off-by: Andrew Bresticker Reviewed-by: Julius Werner Signed-off-by: Yuvaraj Kumar C D --- drivers/usb/dwc3/dwc3-exynos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 8b20c70..57431b7 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -155,6 +155,8 @@ static int dwc3_exynos_probe(struct platform_device *pdev) goto err2; } + device_enable_async_suspend(dev); + return 0; err2: