From patchwork Wed Jun 12 15:28:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjunath.goudar@linaro.org X-Patchwork-Id: 17844 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5AB8623903 for ; Wed, 12 Jun 2013 15:29:17 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id a11sf6370858qen.0 for ; Wed, 12 Jun 2013 08:29:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=WXSu+w3yN9gUp7sqIL7+yZ3q1HTNfnSmPXLtWWWucNQ=; b=AUa3a4UQsHkr2wjL2zo08cqRRths/Uxj2hh8KMwnY3NcLzUHn+HvQSy2WtcYQ9VLYy zwCn7cMb1RIJilSwQvkHFko3F4GobMZeq1M9F0mxO98AQA4aNS8Xk3daC6L7vZIsCZjF EPifR4Gfts7dRGAlGFgabwCPqifm5UQpPMcP6DLJiYHhna8lyg/QZgY5vOSSmVFeD7SB 7rxlDcDZdXpRaClP4mg4S+nTPkwHnuC4xmiYzbuNRYZV+wpWwM6UREyHUeES96F2xQ8Z RcUDbRI3UsfszOyLP3CuKqh3mT5m7ysSR38YFJsyKfC7guQWWhGUXM3jQKIdPjn5RkEP 6kuA== X-Received: by 10.224.200.202 with SMTP id ex10mr14048340qab.8.1371050957118; Wed, 12 Jun 2013 08:29:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.63.34 with SMTP id d2ls3224213qes.66.gmail; Wed, 12 Jun 2013 08:29:17 -0700 (PDT) X-Received: by 10.52.103.2 with SMTP id fs2mr8379797vdb.15.1371050956956; Wed, 12 Jun 2013 08:29:16 -0700 (PDT) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [2607:f8b0:400c:c02::22a]) by mx.google.com with ESMTPS id ha3si8770268vdb.134.2013.06.12.08.29.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:16 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22a; Received: by mail-vb0-f42.google.com with SMTP id i3so5866803vbh.15 for ; Wed, 12 Jun 2013 08:29:16 -0700 (PDT) X-Received: by 10.59.2.199 with SMTP id bq7mr9719961ved.51.1371050956728; Wed, 12 Jun 2013 08:29:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.191.99 with SMTP id gx3csp148670vec; Wed, 12 Jun 2013 08:29:16 -0700 (PDT) X-Received: by 10.67.22.99 with SMTP id hr3mr24159506pad.12.1371050955804; Wed, 12 Jun 2013 08:29:15 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx.google.com with ESMTPS id iw6si4639183pac.159.2013.06.12.08.29.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.179 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=209.85.192.179; Received: by mail-pd0-f179.google.com with SMTP id q10so4168246pdj.38 for ; Wed, 12 Jun 2013 08:29:15 -0700 (PDT) X-Received: by 10.66.240.103 with SMTP id vz7mr13798363pac.194.1371050955299; Wed, 12 Jun 2013 08:29:15 -0700 (PDT) Received: from localhost.localdomain ([223.239.143.110]) by mx.google.com with ESMTPSA id ri8sm19557052pbc.3.2013.06.12.08.29.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:14 -0700 (PDT) From: Manjunath Goudar To: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, patches@linaro.org, stern@rowland.harvard.edu, arnd@linaro.org, manjunath.goudar@linaro.org, linaro-dev@lists.linaro.org, Arnd Bergmann , Greg KH Subject: [PATCH 05/10] USB: OHCI: Properly handle ohci-exynos suspend Date: Wed, 12 Jun 2013 20:58:33 +0530 Message-Id: <1371050918-29472-6-git-send-email-manjunath.goudar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371050918-29472-1-git-send-email-manjunath.goudar@linaro.org> References: <1371050918-29472-1-git-send-email-manjunath.goudar@linaro.org> X-Gm-Message-State: ALoCoQmbsHU5XaqYTjYKt3sSdl4/+IIbs21cAAa3Ee8wxKocWsofNn0zSMVdI32IDnEHZwCwJ/yR X-Original-Sender: manjunath.goudar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Suspend scenario in case of ohci-exynos glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in exynos_ohci_suspend() will ensure proper handling of suspend scenario. Signed-off-by: Manjunath Goudar Cc: Arnd Bergmann Cc: Alan Stern Cc: Greg KH Cc: linux-usb@vger.kernel.org --- drivers/usb/host/ohci-exynos.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c index 6ff830c..6ad38ee 100644 --- a/drivers/usb/host/ohci-exynos.c +++ b/drivers/usb/host/ohci-exynos.c @@ -203,6 +203,7 @@ static int exynos_ohci_suspend(struct device *dev) struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); struct ohci_hcd *ohci = hcd_to_ohci(hcd); struct platform_device *pdev = to_platform_device(dev); + bool do_wakeup = device_may_wakeup(dev); unsigned long flags; int rc = 0; @@ -226,6 +227,8 @@ static int exynos_ohci_suspend(struct device *dev) exynos_ohci_phy_disable(pdev); + rc = ohci_suspend(hcd, do_wakeup); + clk_disable_unprepare(exynos_ohci->clk); fail: