Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3291801imu; Sun, 9 Dec 2018 22:42:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/UKWuGFuVdzF2ySkXYx1maBU9sjievyX9oJys/irP7Ag+tNVbyirQLLGBS77EBMhqqMhIJ2 X-Received: by 2002:aa7:80d7:: with SMTP id a23mr11106674pfn.86.1544424134637; Sun, 09 Dec 2018 22:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544424134; cv=none; d=google.com; s=arc-20160816; b=EdlEU+nzeFhk5i4AbYytcfxmNFGiVu/2o0QNxs+CZAVAO2kRnx/h6M6tUp/1ifMmiL HqOnHZf1+efsZQSXzehCLY5FVUj7LrjwylBxTlHSoLbzQI9ZPSmy13OG/jteyrFqbjfL oCcA+9ZXtnhEQKC/NL1WIpcqNfpqJzLzK+TyBLEGCvFyRobm0Jyj8PnPBpZAQ3jw1ozI OswCFzfbf0xdWbztfBVk2Ltfo5t7qJoWb/DBYvtDjuKc9pC1vOJ/vhv/qBuofQ38TOQz vVXiFt5qLuavRG+2hHC4HYIS3Uj1CDf43FPXK8prRbHZ6fXDJoFfYdMi/xQWb88b6BmI jEAQ== 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=Vgex4/FMdZniAwORXvH7nKoA8fWa6GsmD4pPcyBD5U8=; b=Q55KV2OKOrK4PRrDeQTm47pPEvq0JrYpS2kclW38Nzx3La+ifV/eDN8vTs9QBGdDsz 25Uiv6v2jszz17/yBSx/Xxh+xdDy8+H/qZUDCrBe95v22+QBe/o9aRDxusz7vF2QI2T2 WRnFMqNDA3/is696sXJeEZf4KsuHFT2vcnV20G1pHmS12/7Iip++gIwQd2mTECifO7xg A0TT2Dg/DFFIQfJWerW8Y/LXgQt9hNp6Kzz5R6oZbYNN7VLPMX8fSlOp8N+ybRJ7MqVX G3xfRK/ykl7WDvk5fDS8doC+CLebHrJ7HA3gnbLVH/s+QkdEeKZpnUei60itGVu1unNv ve6A== 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 61si9245267plc.364.2018.12.09.22.41.59; Sun, 09 Dec 2018 22:42:14 -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 S1726539AbeLJGlZ (ORCPT + 99 others); Mon, 10 Dec 2018 01:41:25 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:15802 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726100AbeLJGlZ (ORCPT ); Mon, 10 Dec 2018 01:41:25 -0500 X-UUID: dccccee725974cf2880355b15cd69114-20181210 X-UUID: dccccee725974cf2880355b15cd69114-20181210 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1490308312; Mon, 10 Dec 2018 11:48:25 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Dec 2018 11:47:49 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 10 Dec 2018 11:47: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: [resend PATCH v4 0/2] add uart DMA function Date: Mon, 10 Dec 2018 11:47:43 +0800 Message-ID: <1544413665-1222-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-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 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