Received: by 10.223.176.5 with SMTP id f5csp2234936wra; Wed, 31 Jan 2018 19:47:50 -0800 (PST) X-Google-Smtp-Source: AH8x225r5Oli7nRVp88Ijx5iyFrmA3b4ekczMBf4XHe1nkqz0MNYGhO5nki2rmDavMvkm0dxfjPq X-Received: by 10.101.71.202 with SMTP id f10mr28730253pgs.208.1517456870320; Wed, 31 Jan 2018 19:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517456870; cv=none; d=google.com; s=arc-20160816; b=j5bboepiXP55LtpJ+qf9ecJznlUFWoeq0/lKeubZYI3vLQ1u0pLY2yJjCC98N0cLU1 8ZIm5LGf1ggditCD+u+Wgq3+YjXvV4ssGHd/F109JlOGwrGN/miOyzNLSiP6tZU/rqEU hxKitnvX15CloRMd3b5O22FP3bIzDR2gPuJBaJ7o853+qhMtqypiofdii/rV+KJVsgql MmcjG3ypCo3+pYctdjcBH+cJCX20gX+qfyZw+vFLmOw4XhewJC1QnoXCJX+PdOXhdqZU mxSNvv+zAj0T7GsekLVKHuFVw+HL6LuL01SFjqQ15BM4bmCj3z8ZMspyljZUDGsedOyq xQvw== 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=7XsKyJyKQqgGkBkw2biv+GKN6SSC5/xnjy6WRLeFa2Q=; b=ECbnA+tw0HCBFkSzZulqlzHQhBF95hblgwFqC/OZhtFaq2eCya8xsEnPHNEIocjjno tq+MLZOX/aElUIzeDt8mvWnHuk0pbruLn0e2UHRWI0yGGY+ZYaUTrwu8mVHfZdgjBFDl jQ8zM2g15qkfwcILMervuzkJWh0TIwAKgAMkqf/d9D55aYbdJPqERz12gxlQbGwP5yjU sdv5htWBbMyQGJd8zvQT03lOV3SKnYNCnqcAWpqOrUKclp3lA7Gk6KL7s4CwMMobyalW Xab8InJJXtlpLe8ko37fuDyJIEAfIbQM0B8qx+BCu8E0SmC/ZcUNQz5JkwEDQ6LnGI2z 3c6A== 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 b3-v6si5573605pld.148.2018.01.31.19.47.35; Wed, 31 Jan 2018 19:47:50 -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 S1751581AbeBADpk (ORCPT + 99 others); Wed, 31 Jan 2018 22:45:40 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:56070 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751163AbeBADpe (ORCPT ); Wed, 31 Jan 2018 22:45:34 -0500 X-UUID: f1ff9e18fc5b494f8a98ff9b666ddd32-20180201 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 352465088; Thu, 01 Feb 2018 11:45:27 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 1 Feb 2018 11:45:26 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 1 Feb 2018 11:45:26 +0800 From: To: , , , CC: , , , , , Sean Wang Subject: [PATCH v3 0/3] add support for Mediatek High-Speed DMA controller on MT7622 and MT7623 SoC Date: Thu, 1 Feb 2018 11:45:22 +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 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 | 1045 ++++++++++++++++++++ 7 files changed, 1104 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