Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1015489imm; Wed, 4 Jul 2018 09:53:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf3aOd2913fzEGTs0AKjM6JgrauQEPLN5hOf5BtdIA0QBPAhZ+eK9QgtRxLV2t9IXA1R3Ib X-Received: by 2002:a62:11c4:: with SMTP id 65-v6mr2978880pfr.54.1530723203270; Wed, 04 Jul 2018 09:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530723203; cv=none; d=google.com; s=arc-20160816; b=XhqxhNVQanaQas9bhb1DCOCNqqlvGNfKyKmvs2yK5aVon5f6y/2c4rUmuZzqcf8IbY 0umwKx+xG3aiMU8Llu8EORY+jXgS6jLsxWnFk9u76vXcAqPkN43c0QpzTc5rszCHfj4E M2zhFCTdQFMee/NkHY0nyuV4LofIXBrvglz9HIgeaaZOqctKHlszrHw4faF5JmL6JugJ 89Z8pk3BwwTeOCViW2WJ9Lc0ZXlJT+Rz3bE9o/sXssTLJGwO0kEjavUp3YXHmZnPJTt6 PRdF/MPjBiGUS/Eko3klITmTCz9/BEYFZQ3j1U62HeJmrk1+760hPfP+BizfpOGzc7V+ Y/6Q== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fGWUjIyQjivT5mY8dhmiKszGTEUsn3DD9lSHrF6HmJE=; b=dTfnQiP4KDrNCYCw4HcOX4yKnKMcWEMlXXT/5+AUDOyRtteg2zJucBGhF+Zic+X/A5 1Y/gib29JWyMbLkxey5ohrO8kx7D+KP2tZc+FhAXWVyT8WsB0H0OK12ylqywWotAj9Ml lAQHLXhwSkPkhMHV46aj9nK5i8PO5bHuTFZl4Hf58ulnye1rfeQQEjGFJxkhe/uAisUd WRxnulzvqHa1ufFY80dgx7Xto8xEx8iIA2n9m6kLp1NQhsIpDhVm61Edx9I2vbvu/K2z CCJMbaWTQqSWPBer9fe4i0VZIfAnHNgMWzmRJdzD9lwd0fJq0xh9VBFcMgryLk1j9HRC jnFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kA5ZTVty; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si3544660pgs.201.2018.07.04.09.53.07; Wed, 04 Jul 2018 09:53:23 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=kA5ZTVty; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752578AbeGDQwa (ORCPT + 99 others); Wed, 4 Jul 2018 12:52:30 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34179 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbeGDQw2 (ORCPT ); Wed, 4 Jul 2018 12:52:28 -0400 Received: by mail-pf0-f196.google.com with SMTP id e10-v6so3093831pfn.1; Wed, 04 Jul 2018 09:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fGWUjIyQjivT5mY8dhmiKszGTEUsn3DD9lSHrF6HmJE=; b=kA5ZTVtyRe0NIu4QfY3UFI7oxr9JkFjMxPLho5hKn8KbVX03amMSJqYYBlnl4ZMxwc NoiPbg3j6QHGoYaGwxMQ4AXMdhwZwHJFplXTBFI67tWA9/1PRQMap3w3+hFQGHmd+/nZ PprXYdxWuL8iDLeZ2AojI+yQMqTl0PReLbG8cMrqHCEM/F9rFNmDXjpbYU6f7KkKuo4a IwdM+Ejb44Kivqp3EfWtb9gXa9RqC3JxQy0yGh7u5lJP4nVsz4dlmSgNK6BITgpjHDvC HLNgCMhsRXBdrngqzVfl2yvc9EhkOYfWfqDxG4Q5TBUwC0jW/abe4ouAb3u1LbobyhLh DJjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fGWUjIyQjivT5mY8dhmiKszGTEUsn3DD9lSHrF6HmJE=; b=ckwmFqgZsRxUZUjxbRWACX9UUTWPYTewFgjt/5bk3p58mKXqtL+rkvP78Y9ZMlSt/t 39goUjUI1dXBsm4FKNVVg3jbxY7usSXHS8BzlID0KyULmXI32QrYdwGqN+uMBCnsYiju GwPWjZ3sDQ+arjTVsZNjYDLZdc6d786gwq7Lxg5foyc96f8qLaVaY49FjIRmijjkIhk0 xPa3wpt7jbRvp2G+ycD/SvOJMe8PPiUASPgbNdr++hs2R+fW8fyMJMSkkRTW7/UwaQSO uO3kBqsp1J43LssFk6RNU53VlPQPQQYaTdx5+vFPzeKyFM2fy1hvOz3EtMjoYQqas9sF dDCg== X-Gm-Message-State: APt69E276uCyNj1wKFkUbkY6WgpGZlUXVIjxUgwLJIJFg1fJOqoOmk4q 1fcFjf+pYCtRl4S0+J7DyJm7o6bm4ilqGNIegDA= X-Received: by 2002:a63:b349:: with SMTP id x9-v6mr2575063pgt.337.1530723148220; Wed, 04 Jul 2018 09:52:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:2604:0:0:0:0 with HTTP; Wed, 4 Jul 2018 09:52:27 -0700 (PDT) In-Reply-To: <20180703123214.23090-6-paul@crapouillou.net> References: <20180703123214.23090-1-paul@crapouillou.net> <20180703123214.23090-6-paul@crapouillou.net> From: PrasannaKumar Muralidharan Date: Wed, 4 Jul 2018 22:22:27 +0530 Message-ID: Subject: Re: [PATCH 05/14] dmaengine: dma-jz4780: Add support for the JZ4740 SoC To: Paul Cercueil Cc: Vinod Koul , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Zubair Lutfullah Kakakhel , Mathieu Malaterre , Daniel Silsby , dmaengine@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , Linux-MIPS 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 3 July 2018 at 18:02, Paul Cercueil wrote: > The JZ4740 SoC has a single DMA core starring six DMA channels. > > Signed-off-by: Paul Cercueil > --- > Documentation/devicetree/bindings/dma/jz4780-dma.txt | 1 + > drivers/dma/Kconfig | 2 +- > drivers/dma/dma-jz4780.c | 4 ++++ > 3 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/dma/jz4780-dma.txt b/Documentation/devicetree/bindings/dma/jz4780-dma.txt > index 0fd0759053be..d7ca3f925fdf 100644 > --- a/Documentation/devicetree/bindings/dma/jz4780-dma.txt > +++ b/Documentation/devicetree/bindings/dma/jz4780-dma.txt > @@ -5,6 +5,7 @@ Required properties: > - compatible: Should be one of: > * ingenic,jz4780-dma > * ingenic,jz4770-dma > + * ingenic,jz4740-dma > - reg: Should contain the DMA channel registers location and length, followed > by the DMA controller registers location and length. > - interrupts: Should contain the interrupt specifier of the DMA controller. > diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig > index 48d25dccedb7..a935d15ec581 100644 > --- a/drivers/dma/Kconfig > +++ b/drivers/dma/Kconfig > @@ -143,7 +143,7 @@ config DMA_JZ4740 > > config DMA_JZ4780 > tristate "JZ4780 DMA support" > - depends on MACH_JZ4780 || MACH_JZ4770 || COMPILE_TEST > + depends on MACH_INGENIC || COMPILE_TEST > select DMA_ENGINE > select DMA_VIRTUAL_CHANNELS > help > diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c > index 7b8b2dcd119e..ccadbe61dde7 100644 > --- a/drivers/dma/dma-jz4780.c > +++ b/drivers/dma/dma-jz4780.c > @@ -133,6 +133,7 @@ struct jz4780_dma_chan { > }; > > enum jz_version { > + ID_JZ4740, > ID_JZ4770, > ID_JZ4780, > }; > @@ -247,6 +248,7 @@ static void jz4780_dma_desc_free(struct virt_dma_desc *vdesc) > } > > static const unsigned int jz4780_dma_ord_max[] = { > + [ID_JZ4740] = 5, > [ID_JZ4770] = 6, > [ID_JZ4780] = 7, > }; > @@ -801,11 +803,13 @@ static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, > } > > static const unsigned int jz4780_dma_nb_channels[] = { > + [ID_JZ4740] = 6, > [ID_JZ4770] = 6, > [ID_JZ4780] = 32, > }; > > static const struct of_device_id jz4780_dma_dt_match[] = { > + { .compatible = "ingenic,jz4740-dma", .data = (void *)ID_JZ4740 }, > { .compatible = "ingenic,jz4770-dma", .data = (void *)ID_JZ4770 }, > { .compatible = "ingenic,jz4780-dma", .data = (void *)ID_JZ4780 }, > {}, > -- > 2.18.0 > > Patch looks good to me. Reviewed-by: PrasannaKumar Muralidharan /