Message ID | 20220503005801.1714345-7-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Lorenzo Pieralisi |
Headers | show
Return-Path: <linux-pci-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6752DC433EF for <linux-pci@archiver.kernel.org>; Tue, 3 May 2022 01:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbiECBJO (ORCPT <rfc822;linux-pci@archiver.kernel.org>); Mon, 2 May 2022 21:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiECBJN (ORCPT <rfc822;linux-pci@vger.kernel.org>); Mon, 2 May 2022 21:09:13 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0613.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::613]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAAEB65B1; Mon, 2 May 2022 18:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jijaLr9neEMQR2vsStAphvzNeXPMbBa4CrzYEfPQEVHf2KoKVRJ3xp3WJxeSGCX56nxT4cexl/UhtAqFlUmb3baqvQMKHnjMvBweF1SDbWAoZhJfpW1H9i5/yw9Fpz0FZRqRqFZmxEgdDTjdNAT/k+KLr4ILsHrczGcHSaYBT8WvqItyWfl7nwi5JNW/prvX4pf2GmzjhC85AZwUAAojO7S82AZGEBzBxqEZRyy7go7JarcrIijbftzebWjdna/pEcU40YKpQJhIdL3Jwr7v5D3BYn3Jj8+lkhckmCVD5iaSR7iMTXtBNrZNiB13SwmH53vkqJDwU3Vyd6FLnLbghQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VuIljC2J16V74gKmqQPj8+r+bV/BDFcJCLCqq4qjU7k=; b=UwYQ69ZRW8M9LMTU1Sh42NFiBIGgwWsDe1ylyV9Q4rLgwl4h3ULSzQBPD5ugOQk82+gxAlCCSdKHOle12hYkPw2VAmugiNvd6+TUTrqOCMXDn0J0PhZd4+iZ/0WAAEe8t5MZLWMpkXmqSmw/Qx5dDYsdv7whIQZXsMJPXKHc9tcIj4N6zBUTvGAbi7zJ89i1oebf/3g8KDnvA5iMUkbCYTYJF41c4ry4xcO/kTChoU1QRaMRkc6rfijzjcHOxNTVoL2XSzCkTOHHSWBvsxc0kOJkkt4OgnWbFYdmesWK8nQeq1E+Nv07VUQkfXdcSoBzA9h5uJ0p8JF03GiRk/GsXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VuIljC2J16V74gKmqQPj8+r+bV/BDFcJCLCqq4qjU7k=; b=cTNUqh8aIolmaJISyt9sLNKTdHfSIXXOqG+qdxIz+afDeIuVlm49nK+Sim8J50BBQYjzQaj4bPeuHuE6h7krgtFgTkr0KC68f8Me0VG3KdZcP6WLUwTA/YrnF4ag68JpDbwccP3MOVOBTpzFve50VroKH0tIkJFyJrfJv/XxJh8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) by AM8PR04MB7364.eurprd04.prod.outlook.com (2603:10a6:20b:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.24; Tue, 3 May 2022 00:58:45 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::adc5:45f8:fa40:1b8a]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::adc5:45f8:fa40:1b8a%7]) with mapi id 15.20.5186.021; Tue, 3 May 2022 00:58:45 +0000 From: Frank Li <Frank.Li@nxp.com> To: gustavo.pimentel@synopsys.com, hongxing.zhu@nxp.com, l.stach@pengutronix.de, linux-imx@nxp.com, linux-pci@vger.kernel.org, dmaengine@vger.kernel.org, fancer.lancer@gmail.com, lznuaa@gmail.com, helgaas@kernel.org Cc: vkoul@kernel.org, lorenzo.pieralisi@arm.com, robh@kernel.org, kw@linux.com, bhelgaas@google.com, manivannan.sadhasivam@linaro.org, Sergey.Semin@baikalelectronics.ru Subject: [PATCH v10 6/9] dmaengine: dw-edma: Fix eDMA Rd/Wr-channels and DMA-direction semantics Date: Mon, 2 May 2022 19:57:58 -0500 Message-Id: <20220503005801.1714345-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503005801.1714345-1-Frank.Li@nxp.com> References: <20220503005801.1714345-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0P220CA0024.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:41b::32) To PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08e2e681-5b21-45fe-a7f7-08da2ca01304 X-MS-TrafficTypeDiagnostic: AM8PR04MB7364:EE_ X-Microsoft-Antispam-PRVS: <AM8PR04MB73648FB61654277D8F90969388C09@AM8PR04MB7364.eurprd04.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v8f6kK83aTGcbr9kFJeBGJ+rKLtfiJru5a8K89ayUW8obYrS0aAMnUYmocWYeQHQN/Xt4G01w7tWxjEmTFadyW/W9CDLM3U9NjQXg15At/6RUSAtIYiDGWC4w+3rUtRmgloX5rRXmeY1Ry1DBKiGerxxpm6JGghyM/4iGj7vgrbw8UWr//bAUpOV+AtIHxcz2iC4ECqjUcoRm10JvP7wzA/I8ayDVbKpqeRg5fxZe3uvOYz+UNaIlIgYS0Ef89PX4EX5JHiYrgQ9wVaDsOqYweaTj85wfZ2vsMfgbCQ3wUwWyAiIQB7u5ub4YW6+6rXpWZWGV2e9ItPTEwNvM8Y0hHLsHqy0LA+AEG1EGJBt+P6vxmDqNJ3+Eq7y8vV+zCb6p1kiEsrEFgc1fgDFmZ48NlO8yQdVW9lX2KWdEcjs0wwCA3WOcrzMUBIJJpYo9Zji+NFsQ1IYfYJtyaIQcVRCI+PF2ayq5iMMKhd4edgtscTy909Gv9EqcixUfBhBSOHGC08qTZZtyWsAX3C/sQS+MzvtbQw31NUScmWC/Z6VUxJ/uFteI/ytYMznIYXCMveIKDOhwsuR45Z41gz6JSTvYSaL0fsJAMFIxSby7Kpw3l8LIcsLvZ51KOzfLrHFGHhzYSMjMHPNEAZiIDl78K7mZoLf8LDhMzcsRBRstG+mOpmBjcLL0BUsqdD2E3eMCqlLh5AjWOur7X5MvXCN1Hd9Jw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9186.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(8676002)(66556008)(66946007)(4326008)(2906002)(36756003)(66476007)(6512007)(6666004)(316002)(6506007)(26005)(83380400001)(1076003)(86362001)(186003)(38100700002)(7416002)(8936002)(38350700002)(508600001)(5660300002)(2616005)(52116002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qj47IjhGk701Y7HQW4Erqefg+bqy7rvfuzCeLFSN+RC1iKlQjqtjIz03hSPKXjqMNUd9mCeoQO/FBc1Amj4YRMctbTI4yBuwp+66crtr1+q3yYbPzm0aPFF9IF5cfQUScI/cvuBjibY0/GvNqLTtzebkRea8O6O9t5kjmq6C4PZ5TMUIw+akEZc0//OogzSjVg6T8iZThMnWE11SnGFEkuGYrC0NbY62STop4FARJno2AZ/uU+v8a+izeG9JbZsYw2TKjbai2kGfbEDGaRWZp0UnYhypPkRd34WtR742vN4Ly3cnBX/tV6PjPqbMxMGQqlH6+vG8YRhVaGWmYHlbcs+Gv9od9TW153ArzvZariR9ozE5zSnSc4fNWmWi2p3cdsqRCe+TMWuRUPDAVn+leBOX1T3P2EjPZ2l44DAiq8aKrdDUnigyoqLCoSFetbyYsgue/bRKtwpuw2+QvD0fIW2WnN1gfDobOgcULzOdoesUbGei1aB1xPZEfA346pY02j/SfU4q//DlQ4HTxD0fMAEaE9HnWww+NUmM7B7HpxeJytbE85DEQu4UcjEY+5OOj6yrZKA3yij3P5XTJlILMEX02PM62UDf9ewMlkYxhieMbDIjtoiZxyOXnOTqGQZdVpXiDmsHx6geFGqIKUis12gEswXoJDw2YhSg2qOw5mH+qg+m0Jp0XammJ1Ow8iEuwXxWHOupc4FkoFmc/ldJNpV78YmpxiJv3H1+KzQTSWKKmWE9YAfFUx4k50HsGRa/6JP7PdCdv1SjFvRwyOXJN2COftAWYCG7RgsevtPDnvEE4cA/0wDN7+KMmLPTC2SjKH21qaL+GUhRtPk7DqsLBy9QGStiNLnWabZGb2JJBvSylqp9niRNhwfRzG8YUSJwm2FPV6DBtqR0En2Xjl+0Zq1JAwagEYtw4I35d53BSdKcmsXgUTykVXFohLyC3MOE157+LWnB/4VqBj12SzXcR5WoAzEmKmHeV5LuM5rnhC6OADXfrhl6y98biVUi4H87yYHOCX3TBylP4yNVFDOnAxAyA/7RkvC2A2vYUjj7gjZHGx+XO461rEMDhhI7PNX/rRTqyQnrsQctfWVRMR4gohD2zqf3HEIh9KJCXIluRiVumIdjrAt5m6k2IweKZzjSc4v94eOqCmOnT/fENaXjTuing75rUrQX9A4cCgGM717nCKSil36YsIOnqljXW0qdq+R1GRz/PnMdNMUF66WWPDpMItgErQP+SfPKEq6CNpQOqlWojK/obEJhtwgp6c2Izl8mKRvbrpvFRfx8FC5SA9wi5oO34YS79dQ+oRzSZc78fyMIHo+Qyhi+pi/+iFt8KoT/7l8AFeisbcOxTmy4qL32mh4ftUSJOol3eX0woIVvaIJLoFtlMC9kL5f5h/7BieMRuVW1QbX1unPeGjEJ3W3d4GBkKuBSccxChpVAuH+OcctGiZUdRzkQq8WkhCj9qo+neNfl7fjSVMpPs0In1RpdNCUKtgbLMF5/1EnvHs1qvbItKFZ+vN2Zkq9B6obk5WECsMLxz9XO4hsqUy3kSTDUuGwpi3if3E0wqmozYhwilaIBmMAqEj93kC454eOuN3POox7COvakqJoVw4c6tx5C0BR5clX2LqfOaKhj6twCnWpL7aQwMiXEyBt774PTMDw2q0teQOLOIg9BiYT4A/aJujnWOVAty2ZMreMv8EzlaqVKwKvqSVc1UmBDw0/sc0lFlBVJzPJjIQUJJvprnA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08e2e681-5b21-45fe-a7f7-08da2ca01304 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2022 00:58:45.3228 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BtkfHYus22rBYcqTLBoAPaNjRrrJaDeN+OEv/fxAEn+T2WO3f2KU9pmm0IqqC42UcUqBbKmiYPpP21rG2dGe0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7364 Precedence: bulk List-ID: <linux-pci.vger.kernel.org> X-Mailing-List: linux-pci@vger.kernel.org |
Series |
Enable designware PCI EP EDMA locally
|
expand
|
diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma/dw-edma/dw-edma-core.c index 3ce0d7600da64..fa95d1d17db21 100644 --- a/drivers/dma/dw-edma/dw-edma-core.c +++ b/drivers/dma/dw-edma/dw-edma-core.c @@ -443,7 +443,7 @@ dw_edma_device_transfer(struct dw_edma_transfer *xfer) chunk->ll_region.sz += burst->sz; desc->alloc_sz += burst->sz; - if (chan->dir == EDMA_DIR_WRITE) { + if (dir == DMA_DEV_TO_MEM) { burst->sar = src_addr; if (xfer->type == EDMA_XFER_CYCLIC) { burst->dar = xfer->xfer.cyclic.paddr;