From patchwork Thu Jan 11 05:58:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 124148 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp232606qgn; Wed, 10 Jan 2018 21:59:07 -0800 (PST) X-Google-Smtp-Source: ACJfBouNoQV42AEEppIKfBA51jWiU1PFo1vziBUcgM62hBn2Aa5gEszNVDBJ565Y4bBD71LbC7U3 X-Received: by 10.124.22.136 with SMTP id v8mr17188464ply.302.1515650346981; Wed, 10 Jan 2018 21:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515650346; cv=none; d=google.com; s=arc-20160816; b=csQpV1MtjXKXdoXSwS6274PHRIFlAGzGU2NrYKZysvpkAhuZ2SzEekLM1BfWsHmgJT WKc5YNLyC89Tjrkc50FlYM+V9dTeovr0yuianV8Lsg0NHNoyXXInyTBV+n9Akrjd4IZ4 fCh4irtI1TjLMy17P22hYzUDzw4vW9c+5ejbwwXRUbiFufgHvVhZDe/t5MmVG6dKsuH9 +3IZZS1MjQZoLqm2ifoRt9hb08uKFAsY7la6XAoL+raBo9rldA0hFY+swJAwSLHLVQSo ZBCgwn7ZtJLpy10V4DW1iRh0HWeZGxXhly6jaF+/D/foM4T9zLQIHfORS5/Z1YlxycGy kzfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=bBCSKdBjWzm8TWIJDt4qa1uaikWSoUemzXXQ/TSRuGE=; b=skbLJv65ANJisqJw79SDzIWlejhp6ktcQHqNrYvTIWo2rYf54UZJ59yITGcDnOhpse K3KzDgOA19dciclNF3VI5ONRtcbIsxg98k40vmkg9q+rvoK+uzkbxnSVAiLpWqbsCL5q hLlH6Q4td07+wTyAC9CXn0T72QL+ibsSLUPb0ET1BBrYIg0Pg4sB/+KxabDjiJnfiklo X+W4czxrIYKE/Kk2qw1b7ypoc0Kq+BH4tl7/NM1obwm9ANJO9j1UQNtJHX4FlcRXRuTM XOXoFd+FKohvLM873SuQsIts74xtCWe+07OCYCVo3oNMY/8mqTlrDGITJk+dbvstCjLF 4leg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=grUhILmO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si996869pgc.351.2018.01.10.21.59.06; Wed, 10 Jan 2018 21:59:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=grUhILmO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750957AbeAKF7E (ORCPT + 6 others); Thu, 11 Jan 2018 00:59:04 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35011 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbeAKF7E (ORCPT ); Thu, 11 Jan 2018 00:59:04 -0500 Received: by mail-pf0-f196.google.com with SMTP id t12so750674pfg.2 for ; Wed, 10 Jan 2018 21:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=0fz0Pu2Lj3v83+8uK4Q05psa2onFPxau3RBiX6J9k40=; b=grUhILmOYZhg8gjT217um7nIIMd8KIbpdj51qyA51XqgKQ6VdSKWNVKb7ZEvRJMMV+ /lQ+72U0Iu0pgSm2Tsnxxxv3Ix6NU+oW2MQ3sB/bRUctC8wJLtQpBUdp7I8yDKKMQh1M tv4UwMRGv/OFoi4HpEtPA6phI51+2/LSDpxYc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=0fz0Pu2Lj3v83+8uK4Q05psa2onFPxau3RBiX6J9k40=; b=UvJr+J3J4kbyN6jfzONFBE4rOPLb7fMDAWQP3dpPZhzP9d3nCIctMuG/NvAJRpO+tG vDguMt+eX8Ozn0OQMA5e9ROBd57KQcyhR43op9R3vCK4HROsD7FduCG6n6JGNtOpbk+x ApaKOxO8ae5zHRQtMl35L4tYWPQKKnWVYu+t8Pi5Mue6qj+MFXbdqx3FWRypM6b9PmCd jmHjPhkYGPkzMcTAOrG2h5vYwyJiEo3YwOScGDg1wJ7DyTlELrDNrertZRA3X9JhJ6wN 1FDjgXUZXk/QzixaJoczM5WmD7WubXuurd4n4a0/A2Uao7M7E7v/8quOlgJv1b22/4RF RqjA== X-Gm-Message-State: AKwxyteWU+17l9I1CF1WWr4EfzCdnEK43mz5TNWflihYzXZB+ur1705L a5u8orGV/4uhcA7WsQuwDnrL1w== X-Received: by 10.84.168.198 with SMTP id f64mr7576397plb.248.1515650343658; Wed, 10 Jan 2018 21:59:03 -0800 (PST) Received: from localhost ([122.166.139.51]) by smtp.gmail.com with ESMTPSA id p1sm32760470pgr.53.2018.01.10.21.59.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 21:59:03 -0800 (PST) From: Viresh Kumar To: arnd@arndb.de, arm@kernel.org Cc: Viresh Kumar , linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] arm: spear13xx: Fix dmas cells Date: Thu, 11 Jan 2018 11:28:52 +0530 Message-Id: <6183c13fd3abcb2a6834a537a4809b6527204f10.1515650104.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The "dmas" cells for the designware DMA controller need to have only 3 properties apart from the phandle: request line, src master and destination master. But the commit 6e8887f60f60 updated it incorrectly while moving from platform code to DT. Fix it. Cc: stable@vger.kernel.org # v3.10+ Fixes: 6e8887f60f60 ("ARM: SPEAr13xx: Pass generic DW DMAC platform data from DT") Reported-by: Arnd Bergmann Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/dma/snps-dma.txt | 2 +- arch/arm/boot/dts/spear1340.dtsi | 4 ++-- arch/arm/boot/dts/spear13xx.dtsi | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) -- 2.15.0.194.g9af6a3dea062 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/dma/snps-dma.txt b/Documentation/devicetree/bindings/dma/snps-dma.txt index a122723907ac..99acc712f83a 100644 --- a/Documentation/devicetree/bindings/dma/snps-dma.txt +++ b/Documentation/devicetree/bindings/dma/snps-dma.txt @@ -64,6 +64,6 @@ described in the dma.txt file, using a four-cell specifier for each channel. reg = <0xe0000000 0x1000>; interrupts = <0 35 0x4>; dmas = <&dmahost 12 0 1>, - <&dmahost 13 0 1 0>; + <&dmahost 13 1 0>; dma-names = "rx", "rx"; }; diff --git a/arch/arm/boot/dts/spear1340.dtsi b/arch/arm/boot/dts/spear1340.dtsi index 5f347054527d..d4dbc4098653 100644 --- a/arch/arm/boot/dts/spear1340.dtsi +++ b/arch/arm/boot/dts/spear1340.dtsi @@ -142,8 +142,8 @@ reg = <0xb4100000 0x1000>; interrupts = <0 105 0x4>; status = "disabled"; - dmas = <&dwdma0 0x600 0 0 1>, /* 0xC << 11 */ - <&dwdma0 0x680 0 1 0>; /* 0xD << 7 */ + dmas = <&dwdma0 12 0 1>, + <&dwdma0 13 1 0>; dma-names = "tx", "rx"; }; diff --git a/arch/arm/boot/dts/spear13xx.dtsi b/arch/arm/boot/dts/spear13xx.dtsi index 17ea0abcdbd7..086b4b333249 100644 --- a/arch/arm/boot/dts/spear13xx.dtsi +++ b/arch/arm/boot/dts/spear13xx.dtsi @@ -100,7 +100,7 @@ reg = <0xb2800000 0x1000>; interrupts = <0 29 0x4>; status = "disabled"; - dmas = <&dwdma0 0 0 0 0>; + dmas = <&dwdma0 0 0 0>; dma-names = "data"; }; @@ -290,8 +290,8 @@ #size-cells = <0>; interrupts = <0 31 0x4>; status = "disabled"; - dmas = <&dwdma0 0x2000 0 0 0>, /* 0x4 << 11 */ - <&dwdma0 0x0280 0 0 0>; /* 0x5 << 7 */ + dmas = <&dwdma0 4 0 0>, + <&dwdma0 5 0 0>; dma-names = "tx", "rx"; };