From patchwork Mon Oct 13 13:49:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 38654 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 701442039B for ; Mon, 13 Oct 2014 13:51:54 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf4234998lam.8 for ; Mon, 13 Oct 2014 06:51:53 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=KfKO8SLt5kYvuWSyTfW5QpQ7APy94AfuwrPA5imz+28=; b=DFRCHAbA/xdUIU44UcvhupBhzwlb40e6+5qEYmQrklTL8LCDQdjMg1JvH6kuvE0rHz We51CdIw1qUk9iB4W6mk19NEIOtIgjLCxzdNdLdk2F2WFHujctgev9+GcVLa/jBVqL3a vcRgnueysv8+8zVrSUq42OyRk0Xr+kmQGze5N3piKNjR5rAB6p6hOE6dpRyFtmSvFB8k MSo7OENQYIRE8XnZhCZel1M+8Wn1agL1czYFjkqKJLi8YrBxS9bYPkk5g0dp/umgH0G2 Zh9Qer7fBjIfr756ZIEXyXgfx8MJopMokDOYPBrLbJB1t0aVDxKh2EBwCdh5hjYwOFCV lEzw== X-Gm-Message-State: ALoCoQnWZ8GVpBTYbUtWLorS6ZD701Zt9OnVPbg7AW1hmeHz6z0zu2S1KmZmEpkBzTsLhARD3FV7 X-Received: by 10.180.105.74 with SMTP id gk10mr216639wib.0.1413208313328; Mon, 13 Oct 2014 06:51:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.4 with SMTP id x4ls75184lag.42.gmail; Mon, 13 Oct 2014 06:51:53 -0700 (PDT) X-Received: by 10.152.43.69 with SMTP id u5mr3319135lal.90.1413208313208; Mon, 13 Oct 2014 06:51:53 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by mx.google.com with ESMTPS id ty1si22239883lbb.111.2014.10.13.06.51.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Oct 2014 06:51:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id u10so6509947lbd.29 for ; Mon, 13 Oct 2014 06:51:53 -0700 (PDT) X-Received: by 10.112.138.202 with SMTP id qs10mr23925997lbb.66.1413208313146; Mon, 13 Oct 2014 06:51:53 -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 c5csp217809lbz; Mon, 13 Oct 2014 06:51:52 -0700 (PDT) X-Received: by 10.66.66.193 with SMTP id h1mr23846600pat.93.1413208267182; Mon, 13 Oct 2014 06:51:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si10368565pat.185.2014.10.13.06.51.06 for ; Mon, 13 Oct 2014 06:51:07 -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 S1754803AbaJMNvD (ORCPT + 1 other); Mon, 13 Oct 2014 09:51:03 -0400 Received: from ip4-83-240-67-251.cust.nbox.cz ([83.240.67.251]:57298 "EHLO ip4-83-240-18-248.cust.nbox.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754807AbaJMNuK (ORCPT ); Mon, 13 Oct 2014 09:50:10 -0400 Received: from ku by ip4-83-240-18-248.cust.nbox.cz with local (Exim 4.83) (envelope-from ) id 1Xdg0g-0003tj-CE; Mon, 13 Oct 2014 15:50:02 +0200 From: Jiri Slaby To: stable@vger.kernel.org Cc: Felipe Balbi , Jiri Slaby Subject: [patch added to the 3.12 stable tree] usb: dwc3: omap: fix ordering for runtime pm calls Date: Mon, 13 Oct 2014 15:49:28 +0200 Message-Id: <1413208201-14602-57-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1413208201-14602-1-git-send-email-jslaby@suse.cz> References: <1413208201-14602-1-git-send-email-jslaby@suse.cz> 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.170 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 This patch has been added to the 3.12 stable tree. If you have any objections, please let us 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; }