From patchwork Wed Dec 18 10:39:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 3369501 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 5E82C9F32E for ; Wed, 18 Dec 2013 10:41:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3FFC420268 for ; Wed, 18 Dec 2013 10:41:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 30FAC20200 for ; Wed, 18 Dec 2013 10:41:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754329Ab3LRKku (ORCPT ); Wed, 18 Dec 2013 05:40:50 -0500 Received: from mail-pb0-f48.google.com ([209.85.160.48]:33503 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754472Ab3LRKkF (ORCPT ); Wed, 18 Dec 2013 05:40:05 -0500 Received: by mail-pb0-f48.google.com with SMTP id md12so8256333pbc.7 for ; Wed, 18 Dec 2013 02:40:04 -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=tRZ3NCyArJ7NFGKMOMC7eZuHFumrc6JqYuP4P6xY0BQ=; b=0C5iW+YomC2i0W+9rMZ0b9pwAgzY8Pbx6xOupQU+pL6hu4eKDMvdTrryatqgldnLBp XP2npE8TGeds8v09HIYeXh86PE4Q2mJJzZxHcQ+oW6R7UZCq/rbLixeFeSBZg7McZEmu S7Zwdt0MYpxZhezgeMdZI4AGX0H+Cm8D0DrwMbF/HJ6iyg1Jd8H2+32BuVgfxSHbLclQ 084C8qg8ch1wiT5zpuqkF3nd0HoGvGCZzN/ai+JfUEqfuFOoox/oVNtdWlt++kH7AlBm PR+tCtPJdeVgaCAzKg7lPJQfIvD/0oyJE+r+EWhGCtXMeMTCK2MdhNnf8wgr1ZRFrB6t 1l0g== X-Received: by 10.66.180.200 with SMTP id dq8mr33252971pac.104.1387363204843; Wed, 18 Dec 2013 02:40:04 -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.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:40:03 -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 5/5] usb: dwc3: enable async suspend/resume Date: Wed, 18 Dec 2013 16:09:34 +0530 Message-Id: <1387363174-25942-5-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 device (the parent of xhci-plat) 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 driver asynchronously unsafe. Signed-off-by: Andrew Bresticker Reviewed-by: Julius Werner Signed-off-by: Yuvaraj Kumar C D --- drivers/usb/dwc3/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 59bb8d2..9c8a273 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -586,6 +586,8 @@ static int dwc3_probe(struct platform_device *pdev) pm_runtime_allow(dev); + device_enable_async_suspend(dev); + return 0; err3: