From patchwork Wed Feb 19 01:52:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 11390209 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 12A4B92A for ; Wed, 19 Feb 2020 01:52:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF6A724681 for ; Wed, 19 Feb 2020 01:52:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ekUBGlyz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF6A724681 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=9O1oABqa1DBEtfHaZd6P9XNLG0W7eByQS6twBTCXms4=; b=ekU BGlyzw14ngBp3ASOzk1GWSWPydUk0YPxz8b4gsQB3VEjiHFgsqppPoQuMYAcFSQM45aqFhGxjDx62 FE3LjiQ11amCD4JAbDDdjWKjj0XLtUiOz9A1if3D6BSWYLg1iKMUMq5CS8eXPKPagqtnccSip4ZUE bcE9OR6sCunP9AJ596TmF5Rk9XRVoT4mbNV/XcKInZqyFy6OJFKeXqagYt87ENj1S3YPf/s2qEMTt gnDH2QaiG3FLfDbQzQHyPIrZUHzVPieWuTjutvpnzod5QWNlGMnnyeQ6fP7KfjWCFayPYYkP2SCT/ s9kkxbgePS+uigAA1/d96SjkUyR4R+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4EXN-0006VC-VH; Wed, 19 Feb 2020 01:52:29 +0000 Received: from mx.socionext.com ([202.248.49.38]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4EXL-0006Tw-7a for linux-arm-kernel@lists.infradead.org; Wed, 19 Feb 2020 01:52:28 +0000 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 19 Feb 2020 10:52:24 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 43C04603AC; Wed, 19 Feb 2020 10:52:24 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 19 Feb 2020 10:52:24 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id CD6A11A01BB; Wed, 19 Feb 2020 10:52:23 +0900 (JST) From: Kunihiko Hayashi To: Vinod Koul , Dan Williams , Masahiro Yamada , Rob Herring , Mark Rutland Subject: [PATCH v3 0/2] dmaengine: Add UniPhier XDMAC driver Date: Wed, 19 Feb 2020 10:52:19 +0900 Message-Id: <1582077141-16793-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200218_175227_389227_AA89FB3A X-CRM114-Status: GOOD ( 13.28 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [202.248.49.38 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Kunihiko Hayashi , Masami Hiramatsu , linux-kernel@vger.kernel.org, Jassi Brar , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add support for UniPhier external DMA controller (XDMAC), that is implemented in Pro4, Pro5, PXs2, LD11, LD20 and PXs3 SoCs. Changes since v2: - dt-bindings: Fix SPDX and some properties - Fix iteration count calculation for memcpy - Replace zero-length array with flexible-array member in struct uniphier_xdmac_device. Changes since v1: - dt-bindings: Rewrite with DT schema. - Change return type of uniphier_xdmac_chan_init() to void, and remove error return in probe. Kunihiko Hayashi (2): dt-bindings: dmaengine: Add UniPhier external DMA controller bindings dmaengine: uniphier-xdmac: Add UniPhier external DMA controller driver .../bindings/dma/socionext,uniphier-xdmac.yaml | 63 +++ drivers/dma/Kconfig | 11 + drivers/dma/Makefile | 1 + drivers/dma/uniphier-xdmac.c | 611 +++++++++++++++++++++ 4 files changed, 686 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml create mode 100644 drivers/dma/uniphier-xdmac.c