From patchwork Wed Jun 12 15:28:32 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: 17843 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6A25523903 for ; Wed, 12 Jun 2013 15:29:13 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id gf11sf1993158vcb.10 for ; Wed, 12 Jun 2013 08:29:13 -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=SpreK2F5pIqf7TiobV9z6A3+tHl08PnL326a1PgmRYU=; b=U9Mh6DQk5nb+OQdsFFf6fCe090w2KWFVnfd1e3kRy0kfX7eKJPMTzVQpjmRidZnlgD FQRm0CKgVCmTPmVuI1dXln/L1Hm3BqLYfAkYCN2dfYuwVgKnIckKZ4yyYEA7IuAtvwBT ado7+C7PFi2AWsQLfUIqaP4TL8zp3cZk25UfxeW9q+WvtDigAm8wUK7Einpv16kr1f+M tz8V5WFOi6CI6EKEEq2O10vtktIvsdn3BaDH2dPUeUHdu9YseRTw9a+JWNxhctxEdcw1 6oFS+7rk6YzIFCpoB2THw8E5qoNrE6XbLoOQTlRoxOiGs8fdXppwCx01PXDgvDMVzlGE w72w== X-Received: by 10.236.92.42 with SMTP id i30mr11176976yhf.52.1371050953079; Wed, 12 Jun 2013 08:29:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.146 with SMTP id r18ls148113qeq.23.gmail; Wed, 12 Jun 2013 08:29:12 -0700 (PDT) X-Received: by 10.220.53.7 with SMTP id k7mr4594589vcg.52.1371050952891; Wed, 12 Jun 2013 08:29:12 -0700 (PDT) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [2607:f8b0:400c:c01::22e]) by mx.google.com with ESMTPS id zt2si8794136vdb.50.2013.06.12.08.29.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:12 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22e 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:c01::22e; Received: by mail-ve0-f174.google.com with SMTP id oz10so6716824veb.19 for ; Wed, 12 Jun 2013 08:29:12 -0700 (PDT) X-Received: by 10.58.211.7 with SMTP id my7mr2457825vec.54.1371050952636; Wed, 12 Jun 2013 08:29:12 -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 gx3csp148668vec; Wed, 12 Jun 2013 08:29:12 -0700 (PDT) X-Received: by 10.68.25.102 with SMTP id b6mr20550933pbg.105.1371050951653; Wed, 12 Jun 2013 08:29:11 -0700 (PDT) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [2607:f8b0:400e:c03::234]) by mx.google.com with ESMTPS id ch5si11837769pad.104.2013.06.12.08.29.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:11 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::234 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=2607:f8b0:400e:c03::234; Received: by mail-pa0-f52.google.com with SMTP id kq13so3822326pab.11 for ; Wed, 12 Jun 2013 08:29:11 -0700 (PDT) X-Received: by 10.68.141.14 with SMTP id rk14mr20749768pbb.1.1371050951238; Wed, 12 Jun 2013 08:29:11 -0700 (PDT) Received: from localhost.localdomain ([223.239.143.110]) by mx.google.com with ESMTPSA id ri8sm19557052pbc.3.2013.06.12.08.29.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:10 -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 04/10] USB: OHCI: Properly handle ohci-ep93xx suspend Date: Wed, 12 Jun 2013 20:58:32 +0530 Message-Id: <1371050918-29472-5-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: ALoCoQmxJ7xw2q3a86es3ttx44QEW4t26tcGiEW12w37aQ6lt035Ysf2NZxw2DhLwLEzGCBOueiJ X-Original-Sender: manjunath.goudar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22e 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-ep93xx glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_ep93xx_drv_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-ep93xx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-ep93xx.c b/drivers/usb/host/ohci-ep93xx.c index 8704e9f..7c77f61 100644 --- a/drivers/usb/host/ohci-ep93xx.c +++ b/drivers/usb/host/ohci-ep93xx.c @@ -174,13 +174,17 @@ static int ohci_hcd_ep93xx_drv_suspend(struct platform_device *pdev, pm_message_ { struct usb_hcd *hcd = platform_get_drvdata(pdev); struct ohci_hcd *ohci = hcd_to_ohci(hcd); + bool do_wakeup = device_may_wakeup(&pdev->dev); + int ret; + + ret = ohci_suspend(hcd, do_wakeup); if (time_before(jiffies, ohci->next_statechange)) msleep(5); ohci->next_statechange = jiffies; ep93xx_stop_hc(&pdev->dev); - return 0; + return ret; } static int ohci_hcd_ep93xx_drv_resume(struct platform_device *pdev)