From patchwork Wed Sep 3 21:46:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 36665 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 902E5202E4 for ; Wed, 3 Sep 2014 21:47:01 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id v1sf32188289yhn.0 for ; Wed, 03 Sep 2014 14:47:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=8XUGT4HuBPGdxzwACXueVMUnIbtz3Cj+T3eXzc3mwi4=; b=CZXKqJWd3p5S8vOyl8hqiaQyNn6W4cvbp07OdZLyfzPUCJyKD6Ol+X5DnEjeaHE6D8 QmdmHKt8tnYAWG+MbKz2tm0zuxW9oUSqlnCFDFwfyJ4pgS1umDkELZLjm+RRp4EeTF0P ASd+M51dL+gV8AEbMoa2BIzdAqks3m6CDBA74T7MrR8v4d5iOZuTGNwcW9cIUM6kXicZ xRzWlbipLvlH7fQHCBc86WfbTzYw9RJ8LcEzP2m3AdQlawUr3rh4DnC6FKFGWsRoR4Lc FxjDlgZXD+8lrK2SkQM1E0EAJNnTNogDRXSDcnkMEyFyJJ/X//XIoEMyjNJU353+2xTG qnag== X-Gm-Message-State: ALoCoQnyTo+CpLxJZDoVib02GclID6k9YEHq6VXFuOioQaTaRnfpcrZdyLRB+ohHhdtNQDPaAMZ5 X-Received: by 10.236.63.197 with SMTP id a45mr103120yhd.9.1409780821314; Wed, 03 Sep 2014 14:47:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.17.47 with SMTP id 44ls24123qgc.11.gmail; Wed, 03 Sep 2014 14:47:01 -0700 (PDT) X-Received: by 10.220.202.9 with SMTP id fc9mr145323vcb.40.1409780821208; Wed, 03 Sep 2014 14:47:01 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id bv6si1749615vdb.50.2014.09.03.14.47.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so9651139vcb.35 for ; Wed, 03 Sep 2014 14:47:01 -0700 (PDT) X-Received: by 10.52.94.108 with SMTP id db12mr146880vdb.8.1409780821047; Wed, 03 Sep 2014 14:47:01 -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.221.45.67 with SMTP id uj3csp742817vcb; Wed, 3 Sep 2014 14:47:00 -0700 (PDT) X-Received: by 10.70.103.204 with SMTP id fy12mr355278pdb.144.1409780820311; Wed, 03 Sep 2014 14:47:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ku8si13162384pbc.247.2014.09.03.14.46.59 for ; Wed, 03 Sep 2014 14:47:00 -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 S932711AbaICVq6 (ORCPT + 1 other); Wed, 3 Sep 2014 17:46:58 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:54795 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932347AbaICVq6 (ORCPT ); Wed, 3 Sep 2014 17:46:58 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s83Lkvwd010084; Wed, 3 Sep 2014 16:46:57 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s83LkvR3030159; Wed, 3 Sep 2014 16:46:57 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Wed, 3 Sep 2014 16:46:57 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s83Lkuu1020272; Wed, 3 Sep 2014 16:46:57 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Kishon Vijay Abraham I , Felipe Balbi , Subject: [PATCH] usb: dwc3: omap: fix ordering for runtime pm calls Date: Wed, 3 Sep 2014 16:46:49 -0500 Message-ID: <1409780809-31544-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.1.563.g66f467c MIME-Version: 1.0 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: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 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: , 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) Cc: # v3.9+ Signed-off-by: Felipe Balbi --- 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 9dcfbe7..fc0de375 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -576,9 +576,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; }