Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8873471imu; Sat, 29 Dec 2018 05:39:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4PimFPw+TgXw1iZveG+/lcEi9L2da7MUGwjnK89SBITpzt/mGUG3LlIbXyYLb3/qjj2305 X-Received: by 2002:a17:902:bcc7:: with SMTP id o7mr31681367pls.281.1546090774029; Sat, 29 Dec 2018 05:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546090773; cv=none; d=google.com; s=arc-20160816; b=JVPBaVcFFZlmjdTCLU8XOXUy9bc+qRemuWYIFWdqY1yakMSUFpB3lE02apWZz31eiJ 3XcoLHI4V955MaBx1WbRHMc9uMS+o17hsQ/BvFYFBCT68C/VB0gf1LIoa8cfQ/AvsWjb eoaAEk5pjfBqepOIdIx3ERGuj+JUAGoqSWy4C0FH0IE6Am/pIASLiMc4xF7DXRDGLhGt PZsj1oezT5aBYP7OeQYmlGg5GeDymKQP84QfWx3R+s3eJKJ/Au/4K23YwimSMkMlw6sp IurMuEdvHiLcC1wYYu54TNZZ6qvBKw5zThnuwmmFGFJoMkyW75MynT2YVqFahZh5OmH7 Zcmg== 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=/h3OrRnGxaC0ArV/Kektohj9K2X08M8hs0ztIpOn8h0=; b=Ru3dCNqKi7D+nPohRJ3GlB+izYCFMXBUpjtyBEwKfIt2fPot3W5m6uy6F6T7QX5p6P syRgh1G/zgAb6P7DcI/6G88o3wmwuaWkwLzO7/meivXlmJAzOTdtZjRb8OGmsC/fMkIR HFMUkDnMLfVqEa5ALl95DbtNHmhVjsc5P9ylk3evdRSaKT1/ELCeUxE5qq5+ayQWD1OF ZBBz2NkzymrC6urw3fomczArn13HGbqUVYoZZu/uSyLcBcviIcTbY7zcf0iWKQx9JhHV xSfV4CbURFtpzwE/agBSyWSQHnGj/TcuqQKiOcZe0KgqpGRLXWFiq3l4ewxFOV35/F8h OWRg== 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 c37si11770869pgm.156.2018.12.29.05.39.18; Sat, 29 Dec 2018 05:39:33 -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 S1729271AbeL2Kag (ORCPT + 99 others); Sat, 29 Dec 2018 05:30:36 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:50462 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726737AbeL2Kaf (ORCPT ); Sat, 29 Dec 2018 05:30:35 -0500 X-UUID: d9b65cb1fa53452895a0732aefc57daf-20181229 X-UUID: d9b65cb1fa53452895a0732aefc57daf-20181229 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 322960010; Sat, 29 Dec 2018 18:30:28 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 29 Dec 2018 18:30:26 +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; Sat, 29 Dec 2018 18:30:25 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v8 0/2] add uart DMA function Date: Sat, 29 Dec 2018 18:30:21 +0800 Message-ID: <1546079423-8361-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: F2493C19BCD1171B00A8C3B4327782C3F0ED382E7B72283DA20BC78A9A4C19352000: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 DMA Changes compared to v7: -modify apdma uart tx Changes compared to v6: -Correct spelling Changes compared to v5: -move 'requst irqs' to alloc channel -remove tasklet. 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 | 694 +++++++++++++++++++++++++++++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + 4 files changed, 756 insertions(+) create mode 100644 drivers/dma/mediatek/8250_mtk_dma.c -- 1.7.9.5