From patchwork Wed Jun 12 15:28:30 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: 17841 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2382A23903 for ; Wed, 12 Jun 2013 15:29:07 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id fo12sf8081548lab.1 for ; Wed, 12 Jun 2013 08:29:05 -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=OrwQOOCpnybsDYZC35w7ZxW8sEdtdHKwwMAfLcMuXnY=; b=dVvVoc9GR2IFc+v4pHOT2oZJ7IkEBzCI+zQa0hSqvTRHnRwfYPim8QlL3NHp18p8wU RAvpkNhSlvyZiQ140e6y1umTBaNYTfhuhiqn1iVNt8SXEDwT0LePYtQYOrfcTpJnba61 954+qIjQl+vfgZrxpB2TqCDNzpE2DRLsEoWt5xM3hWG8tQc8xkl1kWx3Gb+617OOremh BRsRt459OMTyRdsmvSH5SsM4QP2/fxjJrBuuzroOOD0QJQ3c/Q4OLs9xX0k5VFz3NONQ vy0iujP/FioRLoywk+JMt6OqAoa7U2ewG0tNiGxPn8zRHQzH2e4U3/IG1UJH74njL25I P6CQ== X-Received: by 10.180.85.134 with SMTP id h6mr4167062wiz.1.1371050945575; Wed, 12 Jun 2013 08:29:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.73.82 with SMTP id j18ls194484wiv.13.gmail; Wed, 12 Jun 2013 08:29:05 -0700 (PDT) X-Received: by 10.195.12.133 with SMTP id eq5mr9832601wjd.27.1371050945464; Wed, 12 Jun 2013 08:29:05 -0700 (PDT) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [2607:f8b0:400c:c01::232]) by mx.google.com with ESMTPS id a6si1068193wik.67.2013.06.12.08.29.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:05 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::232 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::232; Received: by mail-ve0-f178.google.com with SMTP id pb11so6810559veb.37 for ; Wed, 12 Jun 2013 08:29:04 -0700 (PDT) X-Received: by 10.52.36.115 with SMTP id p19mr8474722vdj.8.1371050944396; Wed, 12 Jun 2013 08:29:04 -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 gx3csp148659vec; Wed, 12 Jun 2013 08:29:03 -0700 (PDT) X-Received: by 10.68.131.195 with SMTP id oo3mr20225722pbb.143.1371050943399; Wed, 12 Jun 2013 08:29:03 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id v10si11847709pav.39.2013.06.12.08.29.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id y14so7214307pdi.30 for ; Wed, 12 Jun 2013 08:29:03 -0700 (PDT) X-Received: by 10.68.170.68 with SMTP id ak4mr20093173pbc.211.1371050942988; Wed, 12 Jun 2013 08:29:02 -0700 (PDT) Received: from localhost.localdomain ([223.239.143.110]) by mx.google.com with ESMTPSA id ri8sm19557052pbc.3.2013.06.12.08.28.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 08:29:02 -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 02/10] USB: OHCI: Properly handle ohci-s3c2410 suspend Date: Wed, 12 Jun 2013 20:58:30 +0530 Message-Id: <1371050918-29472-3-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: ALoCoQkKS6iFb3CmwRUWz7xn9U8ULlnXuCRyKHhyjJlBSHRQnn5kQZV38Jug1u5LI9qmqoB1zq2d X-Original-Sender: manjunath.goudar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::232 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-s3c2410 glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_s3c2410_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-s3c2410.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c index 8018bb1..2ffa693 100644 --- a/drivers/usb/host/ohci-s3c2410.c +++ b/drivers/usb/host/ohci-s3c2410.c @@ -430,6 +430,7 @@ static int ohci_hcd_s3c2410_drv_suspend(struct device *dev) struct platform_device *pdev = to_platform_device(dev); unsigned long flags; int rc = 0; + bool do_wakeup = device_may_wakeup(dev); /* * Root hub was already suspended. Disable irq emission and @@ -445,6 +446,8 @@ static int ohci_hcd_s3c2410_drv_suspend(struct device *dev) clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); + rc = ohci_suspend(hcd, do_wakeup); + s3c2410_stop_hc(pdev); bail: spin_unlock_irqrestore(&ohci->lock, flags);