From patchwork Fri Oct 17 08:09:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 38842 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CE7AC20C5D for ; Fri, 17 Oct 2014 08:13:55 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gi9sf176846lab.6 for ; Fri, 17 Oct 2014 01:13:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=ikNNLGe35NRSRrtFrFJn+oHuSMKiErjUULe72BZ9beM=; b=a7Dbr7ObihwnYQmV7mxbp2NMv4140L/QVI37PsbJqiSdTLI/VoZX5LplLOEuxSz+qL HFP7Tk61FXfJwcq6q6gajCTMh2FC4/MRl0U7cb+jC+aArwaDgFweHCAX3DHf6vJlOR2c 38Y7fpQ81UaUxC+TSZVXMuNcV/TEODgQePnwK5PSYwFFG4ZQvmps76tmxX1OdbIYTRLU SdvaH2yhBrDlzPROYs91kQI8QC7DZVpgr506m9brYi8wp2PyIGXCLbfS3SQvdwMKhOJy N8ei1neprg1n7lb3/gfhrd40serCub0aCitYKZsO3lZXHdwiheArO2VSj8FLXeZFc0rb UmzA== X-Gm-Message-State: ALoCoQkFWXrflrHAnPn8HhRoaF0jwgtl5wUCkybA2jH+lSwwZmNAjEwNT8bR9l538NuOWh01IBZL X-Received: by 10.152.1.133 with SMTP id 5mr89820lam.8.1413533634308; Fri, 17 Oct 2014 01:13:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.199 with SMTP id u7ls230271lau.10.gmail; Fri, 17 Oct 2014 01:13:54 -0700 (PDT) X-Received: by 10.112.146.5 with SMTP id sy5mr1251226lbb.97.1413533634203; Fri, 17 Oct 2014 01:13:54 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id m2si847466lbp.105.2014.10.17.01.13.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 01:13:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so259227lbj.17 for ; Fri, 17 Oct 2014 01:13:54 -0700 (PDT) X-Received: by 10.112.167.38 with SMTP id zl6mr7057902lbb.34.1413533634140; Fri, 17 Oct 2014 01:13:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp184260lbz; Fri, 17 Oct 2014 01:13:53 -0700 (PDT) X-Received: by 10.66.121.103 with SMTP id lj7mr7053108pab.84.1413533607588; Fri, 17 Oct 2014 01:13:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si482018pdp.169.2014.10.17.01.13.26 for ; Fri, 17 Oct 2014 01:13:27 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbaJQINX (ORCPT + 1 other); Fri, 17 Oct 2014 04:13:23 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36349 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753632AbaJQINB (ORCPT ); Fri, 17 Oct 2014 04:13:01 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B3D3CADED; Fri, 17 Oct 2014 08:11:57 +0000 (UTC) Received: from ku by ip4-83-240-18-248.cust.nbox.cz with local (Exim 4.83) (envelope-from ) id 1Xf2df-0000CT-8N; Fri, 17 Oct 2014 10:11:55 +0200 From: Jiri Slaby To: stable@vger.kernel.org Cc: Felipe Balbi , Jiri Slaby Subject: [PATCH 3.12 066/197] usb: dwc3: omap: fix ordering for runtime pm calls Date: Fri, 17 Oct 2014 10:09:42 +0200 Message-Id: <72faad48616b48ef4073963497a0a025d7d7d784.1413533329.git.jslaby@suse.cz> X-Mailer: git-send-email 2.1.1 In-Reply-To: <7d97f39bc813aa9f11fe03d602885f81de07007c.1413533329.git.jslaby@suse.cz> References: <7d97f39bc813aa9f11fe03d602885f81de07007c.1413533329.git.jslaby@suse.cz> In-Reply-To: References: Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Felipe Balbi 3.12-stable review patch. If anyone has any objections, please let me know. =============== commit 81a60b7f5c143ab3cdcd9943c9b4b7c63c32fc31 upstream. we don't to gate clocks until our children are done with their remove path. Fixes: af310e9 (usb: dwc3: omap: use runtime API's to enable clocks) Signed-off-by: Felipe Balbi Signed-off-by: Jiri Slaby --- drivers/usb/dwc3/dwc3-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 7f7ea62e961b..2a0422b7c42f 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -592,9 +592,9 @@ static int dwc3_omap_remove(struct platform_device *pdev) if (omap->extcon_id_dev.edev) extcon_unregister_interest(&omap->extcon_id_dev); dwc3_omap_disable_irqs(omap); + device_for_each_child(&pdev->dev, NULL, dwc3_omap_remove_core); pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); - device_for_each_child(&pdev->dev, NULL, dwc3_omap_remove_core); return 0; }