Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6105406imu; Wed, 30 Jan 2019 08:54:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN4j7uNUplldEYD8fbEOWtHH1zA6xKljdwHtDBxBB8aCDGMqAisxtwyivxst4QsbpUm2XOHN X-Received: by 2002:a17:902:7791:: with SMTP id o17mr30704522pll.60.1548867271788; Wed, 30 Jan 2019 08:54:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548867271; cv=none; d=google.com; s=arc-20160816; b=bBeq3cIfGMKdYFCsVDAEwPlsrcDz7TFwqOEtGL0axKiI0hmovJPBpIYuAE0IADhtPg BFpDgm0pxfxqjh1OUryHATnR3JmwLCubL0wySdx5V+ywlNKT/EVZWLnzvmJktCrzho2M e8fpitVtbvxdvKuP66C3PVTZ8DpX3TkNZmI54CnwoCermxJjwpaABSVFSjVwnbcORVum NiWkJ4DfTgs7pyF/2mFJm+s107AcERIABepjvBrWOp+ZXarv88+fQ0E1I/7J9DAq46F8 MLSadsUwpLqd4oI2xs0Dv9nDdv6sZIe/goC4FNjsEKxsktmftFyuIHpdWoPmjJkTGIcQ MIqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Txd3GsWvhF9L3tb39fYpPffEJr9NibpUfMc5wNUUcHs=; b=NfWA86+e3kCgzso1LxiN0jm8q+5DRGhrU/Od2skVCbJvE0cnJkUbvrMO46dd07pxPc UJCO4bPGQzN26q/jVIb7h/Oi55Qz5REDctoylc9oHAgA/oqvKyPx3i3ptnzwCWEj4Qus eoSFlCmv9hre9Phs0pz5/2+8KmbWpF/2IaMdCaOBqmps2hJzdHwZ3rwcDCDEBW7XCqjB D8YMisE4jYFCrEen2k1MziAnfHCL2QsubGAhSb7xdjWOmQ2jtunMeGpgFcH61DYp/606 d+H/oG1w/JxvyKgCQfNS2iui/QbREzJMeOhS8w+71en8jOj3uSq4x48kyrUXqKf7s8Oy ZbRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si1770697pgq.535.2019.01.30.08.54.12; Wed, 30 Jan 2019 08:54:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732271AbfA3QwE (ORCPT + 99 others); Wed, 30 Jan 2019 11:52:04 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:35100 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728469AbfA3QwE (ORCPT ); Wed, 30 Jan 2019 11:52:04 -0500 Received: by mail-qk1-f193.google.com with SMTP id w204so146666qka.2; Wed, 30 Jan 2019 08:52:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Txd3GsWvhF9L3tb39fYpPffEJr9NibpUfMc5wNUUcHs=; b=kfj5LVN0lPUfKkTt7koaa3lew9soFdONfBlV+LLMs1ohIMIIulEjbomAvMVvEDj2kt L+TPTZQMQ/scRMXV2Of3vHMtGjdzrrbIrNHQTx/I1gYiQ16iL2GRDUAa24zqfsry3XRr XVIU4PEcBPYplMw6Gr2ofXrqYnxThEkrLnW2Cf/b7AbVbGJgQZLytpD2XSLd9Ejy1dmf asO89XnzTek01yj6ZsHxLJOpFkF2oCPFHNh3c4I1mN3K8R/T+lAqqferdTok9pctvPrY xZunVbDnaZ7vydpPnUHfuoCRuuoR+jzz68nmzRnV79nxh3bEftxBeDK4NrFbDz3FNW8n TP8g== X-Gm-Message-State: AJcUukdnlmdlbTGLPsXpC/r0JzgKNC+jzHbHgRwZwAHBaQlzVrXYHCfq 66Orws0L1duK7j+ISXF37CZBCpW+7l78YBHAu9VT3A== X-Received: by 2002:ae9:d8c2:: with SMTP id u185mr27031253qkf.107.1548867122620; Wed, 30 Jan 2019 08:52:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 30 Jan 2019 17:51:46 +0100 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id To: Baolin Wang Cc: Vinod Koul , Rob Herring , Mark Rutland , Olof Johansson , Orson Zhai , Lyra Zhang , Dan Williams , DTML , arm-soc , Linux ARM , Linux Kernel Mailing List , dmaengine@vger.kernel.org, eric.long@unisoc.com, Mark Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2019 at 2:21 PM Baolin Wang wrote: > > The DMA engine clients can trigger DMA engine automatically by setting > the corresponding hardware slave id for the DMA engine. Thus add one > cell to present the hardware slave id for DMA clients. > > Signed-off-by: Baolin Wang > --- > Documentation/devicetree/bindings/dma/sprd-dma.txt | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/dma/sprd-dma.txt b/Documentation/devicetree/bindings/dma/sprd-dma.txt > index 7a10fea..7812cf0 100644 > --- a/Documentation/devicetree/bindings/dma/sprd-dma.txt > +++ b/Documentation/devicetree/bindings/dma/sprd-dma.txt > @@ -6,8 +6,8 @@ Required properties: > - compatible: Should be "sprd,sc9860-dma". > - reg: Should contain DMA registers location and length. > - interrupts: Should contain one interrupt shared by all channel. > -- #dma-cells: must be <1>. Used to represent the number of integer > - cells in the dmas property of client device. > +- #dma-cells: must be <2>. Used to represent the channel id and slave id > + of integer cells in the dmas property of client device. > - #dma-channels : Number of DMA channels supported. Should be 32. > - clock-names: Should contain the clock of the DMA controller. > - clocks: Should contain a clock specifier for each entry in clock-names. > @@ -28,14 +28,16 @@ apdma: dma-controller@20100000 { > > Client: > DMA clients connected to the Spreadtrum DMA controller must use the format > -described in the dma.txt file, using a two-cell specifier for each channel. > -The two cells in order are: > +described in the dma.txt file, using a three-cell specifier for each channel. > +The three cells in order are: > 1. A phandle pointing to the DMA controller. > 2. The channel id. > +3. The hardware slave id which is used for clients to trigger DMA engine > +automatically. I notice that this is an incompatible binding change. Is that necessary? If the current code works, I'd suggest allowing both #dma-cells=<2> and <3>, and then implementing both in the driver. Arnd