Message ID | 20220421144349.690115-7-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | Superseded |
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 559AFC433EF for <linux-pci@archiver.kernel.org>; Thu, 21 Apr 2022 14:45:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389609AbiDUOrv (ORCPT <rfc822;linux-pci@archiver.kernel.org>); Thu, 21 Apr 2022 10:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389655AbiDUOrc (ORCPT <rfc822;linux-pci@vger.kernel.org>); Thu, 21 Apr 2022 10:47:32 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2077.outbound.protection.outlook.com [40.107.20.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B39B40E70; Thu, 21 Apr 2022 07:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nHGx+4oSS6YRb3v7zrVOHqD0A+DsWaW0tY2HJE26hHs3RbVOHuoMHYY9oahXE0muKbDQJzfjsl1HQtDokpLJRXFt43a3KBcXmKHUdP559jj6h0qYuQNpcuawauD0kMkMzwXjaGbUIYIOXTwSRLwuaCgH8J93Rs/95nOLkrNZ3UyLqK4lSl9NL4KqByGACo3IQIcBkDXuRybCNxfM2FCVvBZ1mB4ZxOkbqP8kBi2RxNhtB0V5cHq8Rh0p2iBaRoowxZOJcnXJKi3S7TXGWz0FRttXerwjit/vmHeR7KnTfnT8F2gvf0IlWSA+N0Eeobef813kL4tZsp+068uyzS9pwg== 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=iDLR4RrzcSMDkGIvXMGWpsgkncN1pWQgo5kbq3jU6wU=; b=luqJ0r3+y/MVpdx1VH4+TyK+QL9a4HMe+UohRsEWGTBI4YrR669eSdPYTj/gUdCoLYfdI7g9nbv2SXIZZr+J4TWS3avgraxLIxVUiGsNdJ94rEuGORGfVjYcsRe7Am7nfXBN276SXGI30PdwnSGrDI/r4OIJG8q/2krij2eOBXZKoxGfh5OtC6ixo/8KpcpavSr+P/YZgEfwpQqoHexZaiNtOiWE6BDMA477j4YiCuDUlQL6lKJVo6gSbhDwzQn+nYKpRjfWhMk7ZRJDeq/cOdCFMVy6GB4jSgPiNCTybRNy2eakGrAmjvNYzWFcJhcAdRt4NP5kw+QrqFRiq6EYFg== 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=iDLR4RrzcSMDkGIvXMGWpsgkncN1pWQgo5kbq3jU6wU=; b=V68d7IIEk50O1PD3URZ/DQCxvmI/Bjnb82vtoBg/40QVpwaEv8ug0v8i20ZACU0InkFJ7quEjUlMbu6NOTiR5tTf/LcMl4bwhzY6beeJbqCelrYsHqe+aDQASP3LK4GtD+jB/vZ93ubuYqWMq5fZbMP0H+YcDiNpLYrxOXzTqyI= 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 AS8PR04MB8689.eurprd04.prod.outlook.com (2603:10a6:20b:428::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Thu, 21 Apr 2022 14:44:39 +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.014; Thu, 21 Apr 2022 14:44:39 +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 v8 6/9] dmaengine: dw-edma: Fix eDMA Rd/Wr-channels and DMA-direction semantics Date: Thu, 21 Apr 2022 09:43:46 -0500 Message-Id: <20220421144349.690115-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220421144349.690115-1-Frank.Li@nxp.com> References: <20220421144349.690115-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0048.namprd13.prod.outlook.com (2603:10b6:a03:2c2::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: 3de95cb5-d20b-40a2-ed27-08da23a576dc X-MS-TrafficTypeDiagnostic: AS8PR04MB8689:EE_ X-Microsoft-Antispam-PRVS: <AS8PR04MB8689440B9B378D02CD040BB188F49@AS8PR04MB8689.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: jX7y6wrPgbt1WqQCH292woNcKxNrebxt/T2re11miu9xHDRIs+Pq41bdjO+bcsLEh3zhOA5Fkf6RGVTiP40nW19+IuHekin2EmVAOZZl8dgDkISzcFFJ1SxdGZl12y6I/NHJZXHm0YgaXZAxBg5+dE4RPOjMTjqltIL+XI3RTj/lqBPZouHjIb3PlrA0PwCoM5orKnx8AkeYdOgM7DpZrztekh1pnpjKW6OvMzf09smYGjuUWi79v/UxiWsmgHWGqfRZlIoQAHIINH2Qer48KKGjwepp7DfzS2JMR0IW+b5FbD4bOGMwye3zOo24vAkJGmiJlnPmY/Gke4PBXtEkVnJeAiRwVZ6+GMxFKnlxPRvxSxuRb6sCOYJ1dc6/3n/Zdkly0Uz8Pg8QK9/+gTrwkn57M8WbaAFzjnF8jve56NEoZUviULpnaONJvlW5sF5S2Pl7Bm1354ys/jVLsQJ1CIkn2kgSltEPmbFJeM9y9r3vmpO0xcR6VR2ujqTsEXJWlFP5xwLcb6gq7TkxmM++4ESlxKLBGe1tyk/InEx0HGIGM9b+oIoUcigV+SIjcLsc/A9pIgMvRXuLFjQtIHoBGBAJSRGX5+jUxfpRD7KGwIUKbs5yX9byrwwHng7iBm2E4N0W/P02bbrzaf0Qw43jy2nESn+zaJvzqJux6rmF+ww2Rua4MORAZTVKzi4fEeyi8vX0ngkxnQhoBxWFn/5G4Q== 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)(66476007)(66946007)(6512007)(508600001)(4326008)(316002)(26005)(66556008)(8676002)(52116002)(6666004)(6506007)(6486002)(83380400001)(86362001)(38350700002)(38100700002)(186003)(8936002)(2906002)(2616005)(7416002)(36756003)(5660300002)(1076003);DIR:OUT;SFP:1101; X-MS-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HEDA6VnN5n8bBDpNZohTQW14hZETGE2yw7neSHyG+RFchVpRe/RyI2CM3J+RzuLnTMaklwZK0sysPt64G+XMQV9GFkNaHD3aDMMyNz0pV2dkzB9fqa21FUxEDtFtzc1hfYl0J0idWn2cmyREvF87jzeaUvpNcmRifuGddU/J+PsLWnulO/6QtNKuH4dItM7nANDJPnSiyF+RYQ34UFpKHUYVte9ExFVA+TdWj2UNdpzScG3PVgPHKG54Hn9a2Wn27fc3Ey5WnV32Bln3Y65JidVKv8voB4/Y6fymdU9oqBaIBYiJobPBLDFGX2hJnYRzbL2hS8MPzzJcjEa3oRGt1+zAmJj1s9mtc4K26I5fni+61LFgZWOgk4Wr2KZcZOev0dyGfo+eN6fMlwyuyUgsifa5WTTSkpE+YBoZJ6lXcfvZ0Yd/xQ4mgO9MrWzMLq8pQrwx0Tn+M4rESLQfdcWDCcNIdCEpXu4wXvRJfUQ/FABgzOyIHXpwZtQ7Kf0I7l+fcL0VVp/jhYB4jf3nD1UMKMgpsWtz6IzuFvjuppjkLhsQ3k7RAKIsNeWr4zKYWVu4COguvY/+jkZTe6PBV4p3wDmpdpvkYVl17QuqUFfiM8lTugSa423Flep90BjdYsfM00LgAy1Iev6tedezNYibf8Sd7Y7ErNAThHbzQldCHNB/8sEZLHcMBa6G3edfQKE5+Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3de95cb5-d20b-40a2-ed27-08da23a576dc X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2022 14:44:39.8674 (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: PGBg2Ph5C1W5TRcC+NvwFXAIpkx7+SZSNMd5KSe4Zqwg75vCN0zMTxYgf21fxStQVAzFTUWIZ5lK0urtb4vQLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8689 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 184622be500b7..9ac2723ed31fb 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;