From patchwork Thu Apr 24 21:11:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 4054031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8A5C4BFF02 for ; Thu, 24 Apr 2014 21:14:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B262A20351 for ; Thu, 24 Apr 2014 21:14:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 D6A11200D9 for ; Thu, 24 Apr 2014 21:14:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WdQwU-00071b-SB; Thu, 24 Apr 2014 21:12:26 +0000 Received: from mail-yh0-f46.google.com ([209.85.213.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WdQwR-00070V-Dh for linux-arm-kernel@lists.infradead.org; Thu, 24 Apr 2014 21:12:24 +0000 Received: by mail-yh0-f46.google.com with SMTP id c41so1571570yho.33 for ; Thu, 24 Apr 2014 14:12: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:from:to:cc:subject:date:message-id; bh=qeG2xWzB9Z+/dmBFrCXkS0s/SqYw7WgJMQ8y1F2ZZLY=; b=KqpjEmrrdSJNEag66wmSuvJWRd93w6fplGw2lMUnqX/nVcG1Ac6wwEv+n46nNFP2zm v+yFxchAiPy2dV9pg/B4821I7pljXvhqYQcziUXpEs6Nv0ZdQ8q1tBG5LLecr4ITVhcS zmbeK1+0EniPeZjZagO79BjSi8NZr+ln/YW6N6qMYAKGQR0b9YKFwsjszBYbQ20So6Bv MnCDwqpCJ0JvIw8/ejErVTTWsewpKT7fTWB4iH+bA+cl6t2ucyT4oYJn/MQySbJo/e4R rd4grO/yTrhHUnv79Pf0Jvbj6vR6M/chK2V1KmNVQxBOI3WDPZm8QFTSQgGQDyOq4ro0 AbjQ== X-Gm-Message-State: ALoCoQn++2PSd1lTOyMpEzk3aV5gaP3rPZyfGlMXDjbdqn3ZOMDCP85mLJR+4AV9QU8142Sf3+HT X-Received: by 10.236.79.134 with SMTP id i6mr6097070yhe.16.1398373921380; Thu, 24 Apr 2014 14:12:01 -0700 (PDT) Received: from localhost.localdomain ([190.2.108.30]) by mx.google.com with ESMTPSA id f2sm9710506yhg.7.2014.04.24.14.11.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Apr 2014 14:12:01 -0700 (PDT) From: Ezequiel Garcia To: , , Benoit Cousson Subject: [PATCH v2] ARM: dts: am33xx: Move the cppi41dma node so it's probed early Date: Thu, 24 Apr 2014 18:11:21 -0300 Message-Id: <1398373881-23369-1-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140424_141223_586011_F3CE2F4B X-CRM114-Status: GOOD ( 12.19 ) X-Spam-Score: -0.7 (/) Cc: Tony Lindgren , Sebastian Andrzej Siewior , Ezequiel Garcia , Felipe Balbi 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=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, 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 The DMA controller is needed for the USB controller to be correctly registered. Therefore, if the DMA node is located at the end an unecessary probe deferral is produced systematically. This is easily fixed by moving the node at the beggining of the child list, so it's probed first. Signed-off-by: Ezequiel Garcia Tested-by: Yegor Yefremov Acked-by: George Cherian --- v1->v2: * Added a comment to prevent a future clean-up based on the memory offset. arch/arm/boot/dts/am33xx.dtsi | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 9770e35..02e1eb6 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -453,6 +453,26 @@ ti,hwmods = "usb_otg_hs"; status = "disabled"; + /* + * The probe order matches the child ordering so the + * dma-controller node must be the first one to prevent + * spurious probe deferrals. + */ + cppi41dma: dma-controller@47402000 { + compatible = "ti,am3359-cppi41"; + reg = <0x47400000 0x1000 + 0x47402000 0x1000 + 0x47403000 0x1000 + 0x47404000 0x4000>; + reg-names = "glue", "controller", "scheduler", "queuemgr"; + interrupts = <17>; + interrupt-names = "glue"; + #dma-cells = <2>; + #dma-channels = <30>; + #dma-requests = <256>; + status = "disabled"; + }; + usb_ctrl_mod: control@44e10620 { compatible = "ti,am335x-usb-ctrl-module"; reg = <0x44e10620 0x10 @@ -556,20 +576,6 @@ "tx14", "tx15"; }; - cppi41dma: dma-controller@47402000 { - compatible = "ti,am3359-cppi41"; - reg = <0x47400000 0x1000 - 0x47402000 0x1000 - 0x47403000 0x1000 - 0x47404000 0x4000>; - reg-names = "glue", "controller", "scheduler", "queuemgr"; - interrupts = <17>; - interrupt-names = "glue"; - #dma-cells = <2>; - #dma-channels = <30>; - #dma-requests = <256>; - status = "disabled"; - }; }; epwmss0: epwmss@48300000 {