Message ID | 20220414233709.412275-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 79BE2C433EF for <dmaengine@archiver.kernel.org>; Thu, 14 Apr 2022 23:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347728AbiDNXkY (ORCPT <rfc822;dmaengine@archiver.kernel.org>); Thu, 14 Apr 2022 19:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239685AbiDNXkW (ORCPT <rfc822;dmaengine@vger.kernel.org>); Thu, 14 Apr 2022 19:40:22 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140057.outbound.protection.outlook.com [40.107.14.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C989BB928; Thu, 14 Apr 2022 16:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wm/bUNWjI4VamxXtCXIFQcX1hPb20oOUgvLLtLmydPz5zjb3BLUdARjLjlds+CkB6ful1QS9NQnoJEugbhQg98nGBS2tSqF0RF/nc3XxJPfVpk4iiu3jCy4ONa47P6tFkfh539UqqIKEWWz5Hh2v/ZI+Uh74jmPNQDWl2TZAmB575cv+HCg8p7qB9bnRhSCU84cx6TGL8pMb55B3jmyXm5V2wnVFcZqjphdS8oiL5mXgLEr5iO/Z+7SiNSq3atjKxQfYA6EwR7pHZ+uHpmbzdtLLl6joXlKxsn2HIapZghuo9pnigMyPUVdvfOylargEybIA05JiQieXGbbIlUysRQ== 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=21gz+xTRvA8WA6ehie5vdFb8Uc0AAso7NHLPnnYsvsg=; b=QyOQ7E9Unh3V2Icz4yNHbVAT43bqTS6uB4zhK2f1JJ3R6rimvIm6b1dO4Q+lJ0ICKDIO8O6BmYa88IanA7MiwgD9pTMXk9x0472oaa5ukSA+HhEg89lvIQrrvn5IK8CbhRZHiq7QMB0DPojFgzlJ5Apn9Pk9DiG3zqU/etFKbX0HzL5rZO0DRKQMDNRGxLFElWjEsIM/hvyKTYy8Z1QoD5Ho4pKRnOqOZWtvvyCKatYezvRxwNsE3VHZ0HsC7NFmRwhBzKTG9mPMYtc5yJnLKQ1To4Pui/BB8deFjEQvAT3SQnnprTbiR4FJoDKu8lrAGs1DGdoBqTXFXP10M3yaAA== 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=21gz+xTRvA8WA6ehie5vdFb8Uc0AAso7NHLPnnYsvsg=; b=Oi9B9lL39vPuXb7e9z9bi95uDbfME+4nKfLldwNvQLpOtdR3P+nIzHpChj/WSSxzK6/hD+2M+KEojwNEaoltJWgzLr/aCvTRQLOxD6sbyyo6qeJSwfGKvgSydQz0qZIfiHjueyvF7s+jYjc+rXK9XE4tz4q9Ft3knBSI2F5ua3Y= 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 DBBPR04MB6043.eurprd04.prod.outlook.com (2603:10a6:10:c5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 23:37:53 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::e13c:6fb1:ca92:d11b]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::e13c:6fb1:ca92:d11b%9]) with mapi id 15.20.5164.020; Thu, 14 Apr 2022 23:37:53 +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 v7 6/9] dmaengine: dw-edma: Fix eDMA Rd/Wr-channels and DMA-direction semantics Date: Thu, 14 Apr 2022 18:37:06 -0500 Message-Id: <20220414233709.412275-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414233709.412275-1-Frank.Li@nxp.com> References: <20220414233709.412275-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR06CA0045.namprd06.prod.outlook.com (2603:10b6:a03:14b::22) 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: 9d5088ba-f21f-4066-45a1-08da1e6fcbc8 X-MS-TrafficTypeDiagnostic: DBBPR04MB6043:EE_ X-Microsoft-Antispam-PRVS: <DBBPR04MB604333DB38BD13EE3563979988EF9@DBBPR04MB6043.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: 3FGxemsQ+s9YeJw4ZvrkdvEQ91rUBdAZ83KQHAo3ABE9wiU8H2Tv+czv76wHgm+PhAJ2v/quuZb+cMxctCmWMRXxP6pAR2VOyArHBPhQ2TUK/rankb87xKIj2iytZiVuhhjJaQCa4nRRpz4xnWMPhbS+6gXYR42Cmq9zVmPcx6HDuXJoxgfP8n0qU3LEFXDVzTr/O2afEv96oQUo6vFViNZuGMjEEwD3iORubeqBx6zygC2Cme9s+WHhzr0SG7bYgKitdnT5c1qArNolXa+LAMDqawq16ngtlqouxMEObqWIAWDRLDeB/5ZALFFvkOzCWOUngY50LhkQ+ntXkvJIs5Xy/K9r45VLgT6qXZSbE1iiq3R4C3pqB46FTcDaBt1fWIKEJd9Nd0KnYLzOPxaq+S5DsED8YqF3b6+rp17caFsJPIBH93k+5f8Jc2RKtIWYzRqLT1M6jRC67DpUpk1nOYqvKidUeB4dD8EAxgYnJFtPTq9a8/PJYZCoA0kNp4swwDPFlTljNVp/Zl1o76FD0bXt6zgl/NDpXenYj5F50hbLno+MpkBnPKglZ7dWuS6HvOV48+mguFt+q4EiM8IU+kZBeGLP3OKtGO3W0bYdA76PQU4olckDAv7KgrUqK0a6jEBXscwJSoQJBE7i1v16pHxC3njBUBIqVBlufupdAvTG/febS8eTQQTwbKADy+QLhyJCGgyttBkETxYMfrA8dQ== 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)(5660300002)(6506007)(8936002)(38350700002)(83380400001)(36756003)(38100700002)(508600001)(6486002)(2906002)(6512007)(6666004)(4326008)(8676002)(186003)(316002)(86362001)(7416002)(1076003)(52116002)(66556008)(26005)(66476007)(66946007)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-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/yiO/QPX87jqWwj77CLTVW2DGg6c3tv3F8NSNUIcAdwtO2vzvS4SeQmQ5zYRjDGnRp9HWpLaHHth1esKvCQEv5pYn4/0hKv8hAOYwi3Mhh1GUHLx8bantWrzPinvNPcIoloJmATpTAObxq4zpXAOR8KhuG/HVTv2UsYHwP0nuW7yuICBcogO88yq4gA9vvGQRJua/oAJ7Ig2tbVVrnRTmu9lXpw9FVcYdyBltM/R2d3JtEBHNZEg7INaAWoFMfheRRu2mori/K8/PQO5OhzCwQpyHIyodg36lpSxShvNnRsG5j73bsY1uX39ZO3C6Gj2R/W5nbJxopaWjXTTjUZ9mz6OXrsRUYiqwMCQrhjwmuieo3BOqX7+J36Gi1Xq3TOOqAoXj2xoJeKOyJYc2HtmhM9b4YdvYL53gHtD3lzFZy5R5cpymvfp3CPeUq85wC03Y2VQBl1I4PpNxThRFBhd1snB9iQQ90uChBXZ+scGSnAB938VwMTdg+x+3B2S2va8Yh8U0yNk+gvPKLWq0xPs/lfXOhXfaP8PvkavytGl9BCnA2Y9F41ZhIPFoFszA15BCfpVayS93L3WlU0SlM86e33vl0BxWN/21l2kHvSjXppf70/28gi7gQvfcdUNb4hdhDl06EP926vRUKjpIUpPPKMBh+4B5b7AOai4AD8bgEMDsxpNAzcy5bBqxK6dEHU02wRcooN+RL4hXatTKyugmDvKrrQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d5088ba-f21f-4066-45a1-08da1e6fcbc8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 23:37:53.7167 (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: pojn4agwyggyOvR1PjeGk5awwUimhKfylU3d0JH3srvhrZYgaC4468RIdQuj8H52xs60VYsZpskagMgea13bbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB6043 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 f413fd9416956..2765fa1230dc0 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;