From patchwork Fri Apr 4 13:33:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 3938191 Return-Path: X-Original-To: patchwork-linux-arm@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 578C99F1EE for ; Fri, 4 Apr 2014 13:34:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A6EC20383 for ; Fri, 4 Apr 2014 13:34:19 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AFD422034F for ; Fri, 4 Apr 2014 13:34:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WW4G6-0008L7-NP; Fri, 04 Apr 2014 13:34:14 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WW4G4-0001G8-8d; Fri, 04 Apr 2014 13:34:12 +0000 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WW4Fy-0001Eo-Jt for linux-arm-kernel@lists.infradead.org; Fri, 04 Apr 2014 13:34:09 +0000 Received: by mail-pd0-f177.google.com with SMTP id y10so3325442pdj.22 for ; Fri, 04 Apr 2014 06:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Ji6uQvPbXo+no5FlR6MA5AnPdFG0B3DHykdPl6jfs30=; b=rP5icQGEKPJHsCmhRCIzovkAAP6+JO6qbHwneIMwDZR/ef+Rov1kMog8721+B3EIm4 U4gVdpYCRNCmhoH3pr+mwAeGlovOeXTSPVPZFtRkuWSo6XTcjxSJFeGFBqRdpK7vQ79X kvfP3MC9seblCXf9JieJy+KS4CjhdVHAhBGierXhxMsAzk/udSBj5eX/MrQF9TSp9aa5 qKRckg5zteoV/ZZe78TZT0fQ/zyNNS3KSsZPhSAewCZh2zRiooFgza5spZ6HCkd5+m7D UHPvyBbI/8NTVwsTYfb7n5SBscDv0cinXXiUJ8wxoh586yQp8cH/UEO71/nQVvnogbMD FXGg== X-Received: by 10.69.17.230 with SMTP id gh6mr15357979pbd.0.1396618424912; Fri, 04 Apr 2014 06:33:44 -0700 (PDT) Received: from vivek-linuxpc.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id nx12sm40892944pab.6.2014.04.04.06.33.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 06:33:44 -0700 (PDT) From: Vivek Gautam To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback Date: Fri, 4 Apr 2014 19:03:37 +0530 Message-Id: <1396618417-9560-1-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140404_093406_734801_52FA9BC0 X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) Cc: gregkh@linuxfoundation.org, kgene.kim@samsung.com, Alan Stern , Manjunath Goudar X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 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. Signed-off-by: Vivek Gautam Cc: Manjunath Goudar Cc: Alan Stern --- drivers/usb/host/ohci-exynos.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c index 68588d8..7f5e779 100644 --- a/drivers/usb/host/ohci-exynos.c +++ b/drivers/usb/host/ohci-exynos.c @@ -199,8 +199,6 @@ static int exynos_ohci_suspend(struct device *dev) 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 +206,6 @@ static int exynos_ohci_suspend(struct device *dev) clk_disable_unprepare(exynos_ohci->clk); - spin_unlock_irqrestore(&ohci->lock, flags); - return 0; }