Message ID | 20220517151915.2212838-7-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <dmaengine-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 AB6A5C433F5 for <dmaengine@archiver.kernel.org>; Tue, 17 May 2022 15:20:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349846AbiEQPUO (ORCPT <rfc822;dmaengine@archiver.kernel.org>); Tue, 17 May 2022 11:20:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349863AbiEQPUI (ORCPT <rfc822;dmaengine@vger.kernel.org>); Tue, 17 May 2022 11:20:08 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150088.outbound.protection.outlook.com [40.107.15.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851774AE27; Tue, 17 May 2022 08:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=auU2IzC//vK/gR9VtFyVP6M+FK9+G67wq0BYXtd05+q/DmkxsW9C2bXeZf7gOkMoJHOIWRaqeGpW+9HEdCKYtRTH7Tt9Bncn1J+3O3gkvVlWp9CMmoALZ9Kv4+KbAYs8fLnRx1XigzxqzAkmK6LhVI812hYSz2qDvn3BgIvtvYTfSAJ+ymbH/3Yp0aS3Iez5DmQ7jMljjcagm9v/3lZUfBJ8pMvKx30omIINMEdfCxrk5On1a6rnAPUTiLPYts1uq1XDqTvCV24m5davwsg+wrLiqk3XLUVsyL+NBWyPFt68li26ATRTw6piNDml8vt2Qy9kVIgIGwwLstJuzDiUzQ== 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=8xiesIl3VQKcbMSIZFTlAHHkBLiMP3OMyWwMoX4eAW4=; b=hwJh/4o/HetDaMvbuB0qA/6cXOLLH4//czkRgQBrgif86/GHTQWMgxcSXJqcnMVAp2NvY6X5nLCKzWte9+u9hZdx4ptWnJBpMnt60rUOV/WMVpV3Kq7Ls9+QHYsfK4b1YwKofkqhKAIpvxBYA89emnY7iU2dAGDxpHdGBP6TgHbEMseEarY7o0dQJI7hzGqKTaogg/zDoeMjc9vVkn1t+g270Hd7SRJDEDNVr3V443x4Kt0/tCbDGgy7vzOH6O/pECqsKdof1xsPwMFnmmfB/JAeK1UjCchbrzeZnjIliRs3urGo4rQOsDCy+edu8pkkXKMxuc/4H6Bub6FZtMI1Sw== 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=8xiesIl3VQKcbMSIZFTlAHHkBLiMP3OMyWwMoX4eAW4=; b=Wx/HQfD1Nu6GC+qXIC+8nmH3tUUKVXib6rO+ayhCOjWjx5rdiLBHEJWKTQaCkOSj6mbsxH0gbg/OdwG7UfMMe3XZdYH2th2dxaoVUT2XsW59eD4bGjkXeJR6VjiociEt82wP7lcuC4a2wNxhO6b4NSDuhdAGC9wbpczYgYZ57t0= 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 VI1PR0401MB2285.eurprd04.prod.outlook.com (2603:10a6:800:2a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.18; Tue, 17 May 2022 15:20:04 +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, 17 May 2022 15:20:04 +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, kishon@ti.com 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 v11 6/8] dmaengine: dw-edma: Fix eDMA Rd/Wr-channels and DMA-direction semantics Date: Tue, 17 May 2022 10:19:13 -0500 Message-Id: <20220517151915.2212838-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220517151915.2212838-1-Frank.Li@nxp.com> References: <20220517151915.2212838-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0097.namprd13.prod.outlook.com (2603:10b6:a03:2c5::12) 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: 6354484c-2bc7-4e5f-6094-08da3818b80c X-MS-TrafficTypeDiagnostic: VI1PR0401MB2285:EE_ X-Microsoft-Antispam-PRVS: <VI1PR0401MB22857D6F6DBB5E16E323A72B88CE9@VI1PR0401MB2285.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: DsAcX2+N7BTqYowwEaY+a0GPQsXXcUPfzDQmX56loQCGDg1JJ4Z9qOAYteiwqrIjhszvBFgDq071snWwfhnj2F176IRMEX9OC9FeqkX6UjjWUMCqpIJHDteSA01uioEY2gZDyGEx0ZiY/StMS2PcKuNrKu8OrkKOyt56qUox/SWeM8sgCH8UP2OO2JOeE4a8In4fKuwTeHBz1DKlWkjCoTfqBvgLr1ZuyKcNGnNPl5nPZgXDTFGpAbsZPlEW3Tch9t0mdAJP6/zzjGe4eONXj/XJhqb/IyHEZOsZT9vqc9XcbtDVWYYu2A8CMV/FKFFt8N+OmtGV46v2rElM+1rRn9ZEJdp2T1S9bnVTOKSbK5r0UAV9c0vFJqqTnKOZTK358SepqagX8irjdJF8FyWXgF0oWOYOqDeS8z0EZmO4t4rUKDIdptvmBnQgxHZUsE7/juDeBoHHKKOpd4Iuu0wUDZvFWJ3AzThBUlb4VOa3yWxWY/LXnzQDUG1DfH6erG9viyKDr/IWkWgnfeDm+Oa84RMRR4vBplbYASui9Xq8l5ydfhl6swHVjqRTL8nZBiF7QnmwULDIHVyfq5IYIOmjL4dI/IrH1iBsUh83l9g6sdESMgbUn5s5qZHKrnZAiIXirAUHcWIR/0g89/b40J26EqzHuVUKbNBUbSMwRq1PZobSkLXtY/dxKBTXtuoCuxmR5uFh+nUrc4pKmxEgxn+cpdzVp1acFQiQvDLpfB1IRgE= 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)(66946007)(6666004)(52116002)(8676002)(6506007)(66556008)(86362001)(36756003)(6486002)(316002)(508600001)(38350700002)(38100700002)(2616005)(1076003)(186003)(921005)(83380400001)(8936002)(2906002)(6512007)(66476007)(26005)(5660300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k0EIHsOqLacJrr834wyWSFS11FpTRFr5Oh3djgbo55itRuXkiNEKNGwmkBcnU5GcJt2JMsI4St2v8zJ8W+gt42S6PBvf+AP3D/nKJKe9cDSeb2aXtXkhK6hd+8KmNYCzZjB3NYccPRnfPR2VcD6HAfq3AOROV3MdIwcpd91rYLlhKQqxrYdgSHXmRCyWOf+aSx4TaukXbLdiFVYALAECMFdAsYznQFd6X6cogAWpuM/7ozEliDl0/N9Bjpzp8VAW4mjFkpHNtqQxwZTxEBtZeLGQo8bdZux59lqriyzK1SbLw3UzyEsIGk90ihpqYWhqcg250AHJQzM3Z4DmxaSStoLJHk4ovhft72wKLSsfmWe1dRjgIheTIahh/1Nazy5ipPXzyPAxgYqwWSYAaUuX9sjQxPy8D5z9HUXgCbc9xytZc+BmR9N2X8xyhsgSY89Cb9w87gTPSFFKvX+edVX8hRqMNktzomhHrAw4Jq5uiFSRlmWqYw8IqrGOhIl5ymRPsDYlJYo4O3YdeYn1ri5TyMvlMkC1/f2LOUrts+44rL0aZrWP8zUHt2spm+Y3ojJnAXVgNfuzxhqd/GUscHQbdwmeFQAj3aU53KkdjMQ5v+ZzEIiuxPatEaEe3ABjveN7OdP6BJjJ+JvWJq8obJyVAN2RTyDT6LBd9+TU7f7ynSSEODKLqDJbV5BCyvbDNFepBYTfMwcEkCehKxWqs5v/l185LHOrz1+0LLO5SANivLaNclzHMsSg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6354484c-2bc7-4e5f-6094-08da3818b80c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2022 15:20:04.6410 (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: qqj/JdkI7EoWELo4qIy39ab53xfdaegKHd31M7CsG1/uBUJF3A7X5LOa3xnMm4XtYPDtdYPGSUn9Vetzn0F2aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2285 Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@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;