Received: by 10.223.185.116 with SMTP id b49csp2055311wrg; Sat, 17 Feb 2018 11:10:21 -0800 (PST) X-Google-Smtp-Source: AH8x225B7Npbb4OWnTDKBKU6MyTqXKmk1XLFsItAv8Mc1mNbeq3Nw8PxrHO5mrNKO+PaeHoiayNl X-Received: by 2002:a17:902:900b:: with SMTP id a11-v6mr9492690plp.249.1518894621711; Sat, 17 Feb 2018 11:10:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518894621; cv=none; d=google.com; s=arc-20160816; b=V4lX1RcLkey09mn2j64Sra1zUmN5KvwbxGLLQEkwXEZgCD+vTaDAhguQG2EqZgB43H bQh0Te5H8yJ5B/mk1UUt4EVy6zRl9DayXl5mEjNMsySIz50l6Qqjzg2rQE3o9vjphDIQ yXuzJ5PecnFLE/uuK1WojkRvO6LHk+wuJi5XIDA8L9vHSTjZKjjv4ZQgfJKQ8FuTPEv8 ImzLN61NWZvMfnsNNQEYMO763YLjI1ONrBaSjE95yrAzJ9TwoC5QNskP4Y9VobjhUktd 2+VugXZHo9SUXrt7piCh9v9zGzWXbURyvuMLX2bHFFZEj1UvxKPj67UFevho0F35K914 9KjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=pSrCaUHalXsJf+eulgaS0wStF/D7jCNmkAmPPVYdBbg=; b=LcSnNXswsxyfDdTk9/Jj8qeTJAIgXzNyp6d4sRYgkkEN8MOjIXxoFBXzvrPhTkItDx Da26KP4vkr8Vfk6R38J3xspzr/1wEuWcQcPoGcC2RpcCWssrd9W9KhiS60blsHPkvJjU ySyosJqyajwLBGhWgVCjZGDpbHvgGD1n6CbJWZ3YgAUaFfT4PFndgkMVjLxmIIGv2JvS O/PdF3pOespvCBsIO0fnjZr8VFYr3mLjY8Fce4VTcr582seVdxnRhZqxhUV23D5IO+vS YgYYye+IfHNKOX0iceCYIbRO4sYd5GRLErWwbX8+tv4nguIxtGOuxQGBNYSZmEU3WYI3 a9iA== 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 q188si1068394pga.547.2018.02.17.11.09.57; Sat, 17 Feb 2018 11:10:21 -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 S1751253AbeBQTIq (ORCPT + 99 others); Sat, 17 Feb 2018 14:08:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:23734 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751237AbeBQTIo (ORCPT ); Sat, 17 Feb 2018 14:08:44 -0500 X-UUID: 1d53810ace3c4623a765d1efa7a26f9d-20180218 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 857700497; Sun, 18 Feb 2018 03:08:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:08:32 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:08:32 +0800 From: To: , , , CC: , , , , , Sean Wang Subject: [PATCH v5 0/3] add support for Mediatek High-Speed DMA controller on MT7622 and MT7623 SoC Date: Sun, 18 Feb 2018 03:08:28 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Changes since v4: - rebase to 4.16-rc1 - fold back patch 4 and 5 in v4 into the original commit - add the missing header included - fix typo and add more explanation in existing comments - fix the comments with kernel-doc style which uses /** as the begin - begin the multi-line comments with /* Changes since v3: - enhance dt-binding documents based on Rob's comments - make consistent among all comments - perfer ordering declarations longest to shortest - fix warning reported from kbuild test robot - add patch 4 and 5 to keep Fengguang and Julia's effort Changes since v2: - remove extra tasklets and refactor driver for letting descriptors being processed ASAP. - add more comments stating the relevant logic - remove unused macro and variables - change to use the disclaimer with SPDX identifier - add mt7622 support - refine hardware initialization sequence - add tx_status support for DMA_RESIDUE_GRANULARITY_SEGMENT - refine remove handler with killing vc's tasklet Changes since v1: - fix typo in the commit message. - delete status shown in the dt-binding example. This patchset introduces support for MediaTek High-Speed DMA controller (MTK-HSDMA) Currently, the driver is already tested successfully with dmatest module on MT7622 and MT7623 SoC. MTK-HSDMA on MT7622/23 SoC has a single ring which is dedicated for doing memory-to-memory transfer through ring-based descriptor management. Even though there is only a single ring available inside HSDMA, the driver is being extended to the support for multiple virtual channels processing simultaneously by means of DMA_VIRTUAL_CHANNELS. Sean Wang (3): dt-bindings: dmaengine: Add MediaTek High-Speed DMA controller bindings dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC dmaengine: mediatek: update MAINTAINERS entry with MediaTek DMA driver .../devicetree/bindings/dma/mtk-hsdma.txt | 33 + MAINTAINERS | 9 + drivers/dma/Kconfig | 2 + drivers/dma/Makefile | 1 + drivers/dma/mediatek/Kconfig | 13 + drivers/dma/mediatek/Makefile | 1 + drivers/dma/mediatek/mtk-hsdma.c | 1054 ++++++++++++++++++++ 7 files changed, 1113 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/mtk-hsdma.txt create mode 100644 drivers/dma/mediatek/Kconfig create mode 100644 drivers/dma/mediatek/Makefile create mode 100644 drivers/dma/mediatek/mtk-hsdma.c -- 2.7.4