Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3562471imj; Tue, 12 Feb 2019 00:25:36 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibx0J1iO4dPYzFQvB0aSWNlyhfjgt1AnUSLF3A4/Z2DhKGOu1zMzfhcwYNeVsbvazZXTYTs X-Received: by 2002:a17:902:14e:: with SMTP id 72mr2794500plb.287.1549959935963; Tue, 12 Feb 2019 00:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549959935; cv=none; d=google.com; s=arc-20160816; b=jUGx+pxRMNZboG5wfbHtJ0XosC0T0fcopSDXaEO7+db7M0D/zj5iJ6yKQdss7NXvks 7Vaz9EXpWYmfatJUXQNCcoMCCJnd/slNZn5Ho0lDNtXQdxprPhSVv6RzA7dl73bqL7u3 7sLYn20q+/Cidp1O1J+6wE+cgjIWdP7c3nHj4FN1YfldTn2FWNRAglPEz64VrDDDPQr9 LSinJhWDYe8xVf18yYljuXCb076VbiJkBUXw0nVmb6V50AnVVYE/unnVDz93crQCcFUT kv27yEOvwI9YHaxcP1KuP5PVGxXvUUjcG11VrdCR5BuE1NAtUeClU35EPT88FxcfNbiU ZHzg== 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:dkim-signature; bh=wktXpzSXXJvpSrZpX4mhoTSLqogh/PevmF85W+dF9cM=; b=CyQJqZZy9ynJwskG6I3OBETiGVZdG1/aPaLw0+rMXYpxjGew6ti3AsUTHwzDBJEfSK zaAOSmzJUZ1TG+UdIpIldWCM4tGxJZguvR2883++g/qWerx/c8XFcCmHSYGwGDgGmPl/ De8qe1vDUWtNQwy5E48v/xtMnJRPO6pVZEveUAvARIAQTm1Ljf7cBoprYgbf3SCxBmuV KEGpwmCej+unAs+5KUzQP462jb4rnSjYi9x/6c3QPbZWzN2Z4jhy9qxyNIbroMWmfoMd YPTN49osEwhVAbflMeJm9WzCDgILzd6okVh7jX5+pijCUZKGQrnPIVELqe834dJFB/Nv XeSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qnh8semr; 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; dmarc=pass (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 h11si9498140pgq.405.2019.02.12.00.25.19; Tue, 12 Feb 2019 00:25:35 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Qnh8semr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728409AbfBLIZG (ORCPT + 99 others); Tue, 12 Feb 2019 03:25:06 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34527 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbfBLIZF (ORCPT ); Tue, 12 Feb 2019 03:25:05 -0500 Received: by mail-lf1-f67.google.com with SMTP id u21so1324406lfu.1 for ; Tue, 12 Feb 2019 00:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wktXpzSXXJvpSrZpX4mhoTSLqogh/PevmF85W+dF9cM=; b=Qnh8semrh1DcHuUkDn5qlRRsHDJtErWfRjfO0x5CZad7WonhInbg3jmEkYvfRyWr25 KfC+FMr6Zytqe8TroVrLAsmbRNO+QVtYvZN4k+vPsRELO/BpNsEkvilYGbUzaT431WAu MxYMmoeN0xDvQLLJREa4eQV97ehPXqe0x6TnT9KwtvMYNLanvKjr4no5lI19yFDp0SXQ j8j+L6HMY6i628yPGr2c8yF9I2e7XHzPRTHkqYJ1Ane9yuMiM+VIFhTpAC+06mQ23yFk ht/Du1kNG1fcJQHZ0kHR7Nc56WuBOf8P1hPIVjzWeQv8QharGPdSrVKLlZGGY0ssE3h9 lp8w== 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=wktXpzSXXJvpSrZpX4mhoTSLqogh/PevmF85W+dF9cM=; b=DZ+uV0zpIG9GF8h1+G5X9en8dBYeXlkTbLHG6fwdu9Ie/vXXVztCVqukgsnJgZ8e+x GBN4PpOvkCT1u0Qz1iopk6ei13j3asNfttGuRwGOTVApGEbc9XwqkVOX+ip0Y7H294ok 7SrPVyNZOBtoVDjvmeL+/DO1I+SQ9ZmFS7yQVronB7pH1QRLV+kmQ1C5Z9Dq2kIfOPXc CStXWxeOH5EFkmKzdnwdwbjjqqkRuNJ7zlbg2pkuKi0bHjZXcWtOnQ7vkAtxaKkNQTxH /mD+MvF+N0aVeyIhUGxetpulNjWkh2JSMTLD6AG64tR9gv+gusqpmhY7aTSeUwglVMPm kH9Q== X-Gm-Message-State: AHQUAuYnwPLFWQ8T5TPjPYD4tzCkZwwHHurZMBfK3rfLIksbA9P7virC Hr7tivy4ESmgDpMTE5BY0grgVQMTCavBu0Piavf6ciNYz5Q= X-Received: by 2002:ac2:42c5:: with SMTP id n5mr1565426lfl.115.1549959903405; Tue, 12 Feb 2019 00:25:03 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Baolin Wang Date: Tue, 12 Feb 2019 16:24:51 +0800 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id To: Arnd Bergmann 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 Hi Arnd, On Fri, 1 Feb 2019 at 19:53, Baolin Wang wrote: > > Hi Arnd, > On Thu, 31 Jan 2019 at 00:52, Arnd Bergmann wrote: > > > > 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. > > Yes, this is necessary. > > Yes, current code can work, but the problem is that the DMA clients > must add one property (something like "sprd,slave-id") to specify the > slave id. So considering this, we want to change the dma-cells to 2, > including dma channel and dma slave id, which can avoid introducing > some similar properties for DMA clients. > > Now there are no DMA clients in mainline for Spreadtrum platform, and > we want to upstream our first DMA clients: SPI controller. So no other > drivers need to change when we changing dma cells. Thanks. Do you have any other concerns about this patch set? If not, I think Vinod can apply this patch set. Thanks. -- Baolin Wang Best Regards