Message ID | 20220406152347.85908-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 E8652C43217 for <linux-pci@archiver.kernel.org>; Wed, 6 Apr 2022 17:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238823AbiDFR0K (ORCPT <rfc822;linux-pci@archiver.kernel.org>); Wed, 6 Apr 2022 13:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238669AbiDFRZs (ORCPT <rfc822;linux-pci@vger.kernel.org>); Wed, 6 Apr 2022 13:25:48 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2040.outbound.protection.outlook.com [40.107.20.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9B3C3B7460; Wed, 6 Apr 2022 08:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KUyjOZTnzI+TMMew+KA/0EyFdnbP0dSp+Bo/3tNjKqRQppcQM1UfS1oGTKaBvrR+519ozdhvqUGVMe4GSBMp0saGUSHmsfBMt3BHUPvauOwwFJmB8SBbmA1Stg0aFvcKegA60OxhhbEtIl5j4tY8puIjF8dofw2xcCQn9vpV1rVUGsQiT798Sc0bvdkmj5X1O8BN5KYBKKXxjqZVCHv29CYge5/hyk7/x1QyLJk42bnjFF+t7w96oaRHnzt4yMHgom+H07oGGhBcg8d7N8OTgP1xG6RlS85mKwAgczblzN09ldiy0n72e+YSBS+hP5tR49gTmMcGuZF+aACUctfGGQ== 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=xczDOrlcjB12yihCHeMDFTh2nwF//4VIGQk4i0BewOM=; b=bvuJXH8TzHMvK+a9E1BsIFHaaAVlQgh5actAWxi3aRN32mC3BQrIMpsRbDOqrxYUT0An4JJ6OOtYG1pFmDB5ZwKivZv8vZhNuLASC6fIH4zv8C5JwYMBY7IEo/usLQYYtdlDn0EHJ8oYgxQPy/a+V4kk846bySoXLk1YMUl0/tHK0K9evZ7easAsew5ZDFPuEIZ/nRcFrsLFatbseRD9eS6gmxKHcQh274yx3PdHJIuemAX08HoxLsASULifQpfNjYxmVqPmL9uxgWmSRWw2oOaeq5WzOu4O/Zg5hRup379LD35+cPG7mZyHZUVC/B8HGRpoy5iT3va8Lv2W3gqi7g== 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=xczDOrlcjB12yihCHeMDFTh2nwF//4VIGQk4i0BewOM=; b=Wg+TRHCQu796Le22AWmaJCi1PRuJb9lzlWgvS9y4u4/eGStvUMq5DHSDZXFlMpQuiYWp6a7AVM4oauFjFBZUvFUweFMFpOc/KFKiyvnKa6xiZvp5dgFXbVAbrMQulO93A00UHlYmGFuKxswaCP1dp5FAGe9u1Yr9ZXh9KBooF90= 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 VE1PR04MB7343.eurprd04.prod.outlook.com (2603:10a6:800:1a2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Wed, 6 Apr 2022 15:24:44 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::ade4:ad15:823b:7e2b]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::ade4:ad15:823b:7e2b%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 15:24:44 +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 v6 6/9] dmaengine: dw-edma: Fix eDMA Rd/Wr-channels and DMA-direction semantics Date: Wed, 6 Apr 2022 10:23:44 -0500 Message-Id: <20220406152347.85908-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220406152347.85908-1-Frank.Li@nxp.com> References: <20220406152347.85908-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR11CA0046.namprd11.prod.outlook.com (2603:10b6:a03:80::23) 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: 454f20a6-b48c-4b18-0ffc-08da17e193ec X-MS-TrafficTypeDiagnostic: VE1PR04MB7343:EE_ X-Microsoft-Antispam-PRVS: <VE1PR04MB73437BAA87D16D848125A56288E79@VE1PR04MB7343.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: OjVQT8i2Eg2roV2VeGCkEmRjLPfdAaf9NcOGNywHmjfu1TD/T4+j3eBlzUet8edPZRhntmaWT//wt5cap5srTEEsOxBYBA2YC3/RBpNR2z4qQBrbqq7ruWKiu5QRz7ya5gRa0YY0wPbrVYnIZpdpYCvBvdi23nCB9kO1ZAfQ3rSgArJH0g1wpjHcBiKpsC/pMkN/+xrO8uUxJ5P11vsdQEMG1k/cGlFn2XM2MTCLJ2gVfyjUpFWGV9YiKCZhvOXCbo662bGrLhQp1ER9t0wWJuN73YGkTuFZos21uAJj1mAte2zuX1fEugoACKEu2jN/9mlRGlUDjk8rxhB6jyZ9e+lRwuVGapKcGqOCA4ZmxeSER4KDvaCsFhJocTWc7Ku7MbbDvjrkBFVCjuUsSxaAtdtkk1qffn4/JPUe8CHyrRVWmxc16DYmXTUZ95sjsEL7zfoR4hYQzxvI9kzAu6+md6PeA1sH+bOQlxeBdQQ89Bw9CbNm2teN1o/DeN3kCqhBsSDx9+9FuWcNYh27PaoK0iJSxgqy/wRmpoh0ehZlhhZuxPlBtfCFB5R2GX7aCXnsmZWgNrLRq01XgHfvfMKcvcsyK+knb+6LaZ8Fa6v5YzZHsd3ELFk425V9YtrEZONoJhP14WmmassJViSgwIg1+URRreRzmPhHbZ+23K0vzE4Ou3V/tnAWnbAyCvZWq5r6gzJNhxo5XJ2oWpKCXbzF3A== 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)(508600001)(6512007)(7416002)(36756003)(66476007)(66946007)(66556008)(8676002)(86362001)(83380400001)(4326008)(52116002)(8936002)(26005)(5660300002)(186003)(2906002)(316002)(38350700002)(2616005)(38100700002)(1076003)(6486002)(6506007);DIR:OUT;SFP:1101; X-MS-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Yx/SOjPcZkM/TmG+wFkjcN7uwZwpN7lBu2INOiqCo3mEKo80WgIJazEJ1hhX1nzmnPn39tHCKBN5Aoy0l+SKZMC0IxHXrBSWjhnQfK/v8yhxVzgffVjy4Jnr1nnjszH/0OtOThvyS9KIf7JQnfJxxNVt8bl/GCVyTUWauKYlnruSgcUY1zxI3Eh+D9Z3V8pf1iBZ/ADCKzLWpTJetuF7Q+GHvVeHMGiv9CkFqG4OLBC/qtcvwHOHvdNDYeUmqKPRQ2HFrgFa+f7EOlEc1DOuHhy6lxFYIlIrTuiv7oTz3ah8jWPLwgFI2ZW8QhDx3CZUcy/l8+68+gkfvDh1aJqIHUP4czBRLF7mUEwlzBwcV/1n4B4ERjyTxofWTdVtOdb/wayvSCeGvKC1w+JAwxI6aiMY8FXEJSM4vJHen2szTyoq1K9tWSQ6rBzevZXUBs2h1JRZ/qoNiSrO7Uzj9DOzHVZczmGDM1ve2H3sUcDPI+pTrKuR+d5/3gEkYpusPzI8bBGg5+mRydg/f0wJIUUOo+RVu3qygPbJGo7AL3YFVYZ+jg7nJmn4VyoipKtDIDvIjhEBuXsqRzHoQGutAaqv4uDI3zhwTBGwpG77imB3E+nd4DKytUBvWf4sJ6IVlhzLhZwlM0vQoV/yPX/LAG2OHt3d+fyVXeqOOonSqni1q3UjKqPRSoKc3pm16CK16MONDZFxuDTAs0sPRA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 454f20a6-b48c-4b18-0ffc-08da17e193ec X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2022 15:24:44.4866 (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: t9cqlC/Zan4ZXn9fy/pipq0jR7lCd7A68d+5jUcLTY2eUAWvBspl9KQpHtIQsGj267k6KyZKCzIe4rnAp56toA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7343 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 e321f36c1bfb6..90a353bb5fb49 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;