Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp309247imu; Mon, 10 Dec 2018 22:31:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/WW1D/EBGphV7xrXGGeGyVsO/KJD19oMHpA7AG+4P5x+4jw/6Li8ZkiZIVtBVj3KIQwFDEz X-Received: by 2002:aa7:8608:: with SMTP id p8mr15421334pfn.125.1544509886871; Mon, 10 Dec 2018 22:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544509886; cv=none; d=google.com; s=arc-20160816; b=DIW2y/prAJCmkLsKYB0AgpUclXXw1mcGKdVgRsgBpjAlocB3gd+LDHQEf0k+LO4cZ3 pfNmZ1NBN5eAbu3LgGZ7JrTPg4JkV1/3ZZ68gLUq+uHoNxc+tkYbMg+C4e0+bClp5Yd1 v7tQFsx+vcAamAxyKaJJ4DWorLE4gqMXbsVjK5nsjCkLd1iSIFVHmn4UbV0bjGXWDjdR a61agqv23YsMKOxNfbYtvgyuxxUj1GLr1Z32i+2w5al/HlorlVx9AH27ILpmPehzitX8 mThtrrMRNRZ0t+DS0a3Tfr13ii4hHTqT0h8y4Z7EgDTdctpAdSIt8FSaEYUq71R/O3NK gcNw== 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; bh=kc82mPiqP2xKY5F+KtkOdxfnAKMbK4nxm9iicbaq9W4=; b=LNAJljBRebGTh2A3KoUnngGUiRRTTUHD100Lnd8z7AM37PkQjRf3qBx/hEPHtyRvXC e9+4pouvBHC1vt8aYfLBdKlynDFmpFLBZJYUUsB2tSF12PKXsKclLbLXMeqxkwwRXAKn oRPhkki+M06d9mmTNvhhIW+Aex/Sk45YCoNYFArTmPJWh6eNkJ9JcWYIHpRyjUt3/LxI G4xJPmlz27S+9Udn1OuvJMrAASEkLQ/q+Rs48mUT+BgwdhEGcAjrgMUko2tgNaEguJ/5 DFlWruhzkWZx+Y+gT/meMruvr/3Yffqvmc5wzZWTYtzarhLiXrr785/bBA09vCuCRsTd fbRA== 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 a34si11107814pgb.458.2018.12.10.22.31.11; Mon, 10 Dec 2018 22:31:26 -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 S1729295AbeLKFh6 (ORCPT + 99 others); Tue, 11 Dec 2018 00:37:58 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:49795 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727849AbeLKFh6 (ORCPT ); Tue, 11 Dec 2018 00:37:58 -0500 X-UUID: c5bf67ea02a5448b899a485b0565e5ab-20181211 X-UUID: c5bf67ea02a5448b899a485b0565e5ab-20181211 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1755209803; Tue, 11 Dec 2018 13:37:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Dec 2018 13:37:49 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 11 Dec 2018 13:37:48 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland , Ryder Lee CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v5 0/2] add uart DMA function Date: Tue, 11 Dec 2018 13:37:23 +0800 Message-ID: <1544506645-27979-1-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F1B53AF904294C972B7BDD82D3FD6BBF1AD3A14DB688C1A509C0C6F61A16E2972000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node, the code of UART DM Changes compared to v4: -modify Kconfig depends on. Changes compared to v3: -fix CONFIG_PM, will cause build fail Changes compared to v2: -remove unimportant parameters -instead of cookie, use APIs of virtual channel. -use of_dma_xlate_by_chan_id. Changes compared to v1: -mian revised file, 8250_mtk_dma.c --parameters renamed for standard --remove atomic operation Long Cheng (2): dmaengine: 8250_mtk_dma: add Mediatek uart DMA support arm: dts: mt2712: add uart APDMA to device tree arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 ++ drivers/dma/mediatek/8250_mtk_dma.c | 830 +++++++++++++++++++++++++++++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + 4 files changed, 892 insertions(+) create mode 100644 drivers/dma/mediatek/8250_mtk_dma.c -- 1.7.9.5