Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932147AbaDICNt (ORCPT ); Tue, 8 Apr 2014 22:13:49 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:10499 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756246AbaDICNp (ORCPT ); Tue, 8 Apr 2014 22:13:45 -0400 X-AuditID: cbfee690-b7f266d00000287c-7f-5344accdcde9 From: Jingoo Han To: "'Vivek Gautam'" , "'Alan Stern'" Cc: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, kgene.kim@samsung.com, "'Manjunath Goudar'" , "'Jingoo Han'" References: <1396968035-32286-1-git-send-email-gautam.vivek@samsung.com> In-reply-to: <1396968035-32286-1-git-send-email-gautam.vivek@samsung.com> Subject: Re: [PATCH RESEND] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback Date: Wed, 09 Apr 2014 11:13:32 +0900 Message-id: <003a01cf5399$4e7e8590$eb7b90b0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9TOT5FAkaxw8MaSI6xpw5D9unzPwAX5eXg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRmVeSWpSXmKPExsVy+t8zfd2za1yCDb6t5bTYeeAau0XblYPs Fs2L17NZXF54idWid8FVNotNj6+xWlzeNYfNYsb5fUwWi5a1MltM+H2BzYHLY+esu+we++eu YffYvKTeY/bdH4wefVtWMXp83iQXwBbFZZOSmpNZllqkb5fAlbGjfxd7wU3eisdX9jE1ME7n 7mLk5JAQMJF417KCHcIWk7hwbz1bFyMXh5DAMkaJhsef2GGK9jU+YIVILGKUeDT9AVTVb0aJ i28XsYBUsQmoSXz5chisQ0QgUmLP3YPsIEXMAn1MEre+bgQrEh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xaohgPoVHWJR391IW4wkji0Yx0bRImIxL4X7xgnMArNQjJpFpJJs5BMmoWkZQEj yypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4CTyTHoH46oGi0OMAhyMSjy8CpYuwUKsiWXF lbmHGCU4mJVEeJ9nA4V4UxIrq1KL8uOLSnNSiw8xJgM9OpFZSjQ5H5jg8kriDY1NzIwsjcws jEzMzUkTVhLnPdhqHSgkkJ5YkpqdmlqQWgSzhYmDU6qBMdvhebaGxrHy7odel25dujOZ9/Bs 86UL1l7ki0iamWlgtC91u/9i4+NT+zneOvFqOvLLdk9LUbKy9Z6U2L5o0pvybb/z7dZ6RN36 +1H+ZuvMSoF9TO1bxRY+3Nivn7bXJ/z4Uq7Hn1MtKx2b3KqCzjaWi+QwpZ+2PX9hQvm2+3p/ Lx8uWNdyQYmlOCPRUIu5qDgRACvEcVJmAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, April 08, 2014 11:41 PM, Vivek Gautam wrote: > > Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend > has already removed 'ohci_hcd' settings from exynos glue layer > as a part of streamlining the ohci controller's suspend. > So we don't need the locks for 'ohci_hcd' anymore. Right, this spin_lock/unlock is unnecessary, because it is already used in ohci_suspend(). Acked-by: Jingoo Han Best regards, Jingoo Han > > Signed-off-by: Vivek Gautam > Cc: Manjunath Goudar > Cc: Alan Stern > --- > drivers/usb/host/ohci-exynos.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c > index 68588d8..9cf80cb 100644 > --- a/drivers/usb/host/ohci-exynos.c > +++ b/drivers/usb/host/ohci-exynos.c > @@ -190,17 +190,13 @@ static int exynos_ohci_suspend(struct device *dev) > { > struct usb_hcd *hcd = dev_get_drvdata(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 = ohci_suspend(hcd, do_wakeup); > > if (rc) > return rc; > > - spin_lock_irqsave(&ohci->lock, flags); > - > if (exynos_ohci->otg) > exynos_ohci->otg->set_host(exynos_ohci->otg, &hcd->self); > > @@ -208,8 +204,6 @@ static int exynos_ohci_suspend(struct device *dev) > > clk_disable_unprepare(exynos_ohci->clk); > > - spin_unlock_irqrestore(&ohci->lock, flags); > - > return 0; > } > > -- > 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/