Message ID | 20220422143643.727871-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 648B9C4332F for <linux-pci@archiver.kernel.org>; Fri, 22 Apr 2022 14:37:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448749AbiDVOkT (ORCPT <rfc822;linux-pci@archiver.kernel.org>); Fri, 22 Apr 2022 10:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448748AbiDVOkP (ORCPT <rfc822;linux-pci@vger.kernel.org>); Fri, 22 Apr 2022 10:40:15 -0400 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20045.outbound.protection.outlook.com [40.107.2.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24AEC5BD38; Fri, 22 Apr 2022 07:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gEe8E9icCk6ENBa0FnoJubHqMsW3OCNESrYvQBkxyCyTarBnThIXlGs4Db00FrCpCxbWSwITV+RJQwkZwFpVe9PclkqpxUrk2cbHpy7VhAjNaJBhJJHTnKk2zHT+EWl1KVUV7y1K67V4oDSR4D3BdJghX3FOIcu6OeWvVu0Gt/a7MmJy6sVzLbkQIAHtzIKYxD9PQhlBlzQPvfsHyp+5dPA0MpM+EoQEJ0Y1NpJIdyK2lBjKljUJ6Jui+4kVyagzzBgu+AntAg93/rXZfG2yG9NwQSTH77BVrXLxEr/6BHZMJ7gT6ToaBCoMfkoJ92gUcXzYJMXSzSbQvLV+G6vM5A== 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=Tz4pgxzCrc+cArmUfFtqSnBzTLZ2fU+hNU35ICiLNFraB9Qo9n3f/eSPPB3VD+Jcpr9fi7A9MFX+Mdxy7nXxHvl2X9kxzz9xOjRZQBRKZN1zZZDOFB06i0ASVcdfCjbid1c79b8POvx7c6uoe+fq9Qsj8TMZNhBSmC6xfnaAGMRbLRIYSTm7oIw3HaLVjHoqd7dhAwgpR6HPWjria+fImCLldwaDnvvCziIrUZ/vSOV9ECKEDzGcV0iSusk7P5dWQxyN5U+kuhOvjSS7XBUVy0JvBt4VAZnNz9yz+KYPUOTGR5fNNgT2SfYn2yvsbZuToT32glTRo0nDzsqWWAy/0A== 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=c6s26t3wAIwSMXTOCWc4GQk6/ldUQ8UBanpjmu9w91eVSLzV0KixpEXNxgyqMOal4zy21lsZvdE4qoB0MO2rM8vLPVIpVC21pHWuYNhP+5YVGYByP8krSPeuVL5yNnt/CBXn6TzSWDwUeTjxMbUxP23TdCB3/Jm2OhJxCQiWqVA= 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 AM5PR0401MB2644.eurprd04.prod.outlook.com (2603:10a6:203:38::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 22 Apr 2022 14:37:18 +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; Fri, 22 Apr 2022 14:37:18 +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 v9 6/9] dmaengine: dw-edma: Fix eDMA Rd/Wr-channels and DMA-direction semantics Date: Fri, 22 Apr 2022 09:36:40 -0500 Message-Id: <20220422143643.727871-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220422143643.727871-1-Frank.Li@nxp.com> References: <20220422143643.727871-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN7PR04CA0063.namprd04.prod.outlook.com (2603:10b6:806:121::8) 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: ac865861-6137-4b53-295e-08da246d9a34 X-MS-TrafficTypeDiagnostic: AM5PR0401MB2644:EE_ X-Microsoft-Antispam-PRVS: <AM5PR0401MB26441F248C9A64FAC78103B488F79@AM5PR0401MB2644.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: GQeoqKsjLUwa7ufwNWIjBM53wJN7A+fElC3rWpq5yLu0EdSYu0TtBWlN2GUO8nCGpDyNviAfGXGsax6ns5yxiXJ8/phm5DZWkWr18z2nSgPFt5mKEPV8g+ahXxfN4Em9Zdm2JH8f/bX9RRntXypGIsuq0A/HUbSb16Ht24NlRzkbumO7jgKY5h92cMJbHixlkKfDin9HomBZEyfHdgONaGH4gbJuw20AtlI9Kd7nNl2Vgh8xJG/MCmG+AQLRjXzU667b4gzf5J7pydjSdlT9WKOXx7O1e2AXLEBIzHKO/2ueXWvmI68t/0EpxiZMyn5FFVgFrRAUJI9P0pY+QWP3idKKju2eurZp+sbvbZ477VrrW4KB54hWkwUI20mzPyPRN22z0LeNFJ6KvSm8jrfmwYVbvZhoetAqX61/ueOPbqb8kiCZPuz+kla+zHqgVpS5fr3YudH/z9yaE74oiKBJ0DJImkruYYKTUqA1FFZRFslKLtrREpMRsmR3bRvBOmMZVXIAH3xUHOveLqqRAWAL9e3xGX+CtAHvWAI31s4VEZ/m6v2AygjgrDvFHgNtNu6bK9wt2gM5YY5gjWU5xQ0lpOsNe0u556tBZBhxYXlBMmV+qfGfDvn7e3TevcuhuqN9l/N8zP1pmPxTWI2L80TL7i5M3dfAsBWfq6u5fQv3Yrf1FXKGqw01B/DKODIxMKoh1/eS90NNDsFFGoMJyaiNWA== 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)(8936002)(316002)(4326008)(6666004)(66946007)(83380400001)(508600001)(5660300002)(6506007)(86362001)(38350700002)(6512007)(36756003)(52116002)(26005)(38100700002)(2616005)(6486002)(66556008)(7416002)(8676002)(66476007)(2906002)(1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ZDhiGhV7HUcYbhd0EVixLBsopTRl/6IYxNSxHLfepy1VWhAMxU12Rtd33n3PDuWGjL7frLj4qJ+ivfaUcwYUOu7qEy/nNV6oWLoH/VXK5Ktb/HZpIemx9kseXT+aYtnAPneKc6GvOlOxqBpKUMOcF6cz8MG7dVpHfEbk8bzY+0xBtYolL0PddhWBxxG4aeZ+1uaAOuSCLq7mCvk9SSFq4sRKuCasiPzHPo1tfrE2WhC2kBg6DduWkcT9/c54Wc3Skqo9c0ww7bpjhdQ0seNf95T5/BR0rjq4aD9ESBzBix984OYOjPzDrdTnRcb1RZBrAHX0BayxvUzxMou76UZ9tZJucktIIm4wwOiA9DypXyfgKOx9mJk7xbjyafxtutUHN+D7qV1tZFlrDREMrhzZZeJkpgJrVqzYhf68wIk25fuE+sJWtV1RUd5a0giuUJKJxGkJTAGfrMJPmAiGke6i0o3/OIIX6A5o+/99oY1/aTzMFopjfI7prztLKS4ujl2xSdR7Bx3+cfAyx5z4jjoUPB8Z0+qQhnqzoHicwkof8XDCToRpW7zlH4wRnOyMG1/XFrvpmkREtCYahhUu/lE7ttEvsvyMAzQvlDi4Gjz8IDPpj4LsyZskzJL376naisLMHHKuBXuwyWfeNlgVCmb1bn3RNKHkbdoiOaL+fLB73h29suqvZrVzMfNfMICjoPgrI+7tIUEmOc1BwuyHrRQfu6Qkvf7vNj/c14X+6/6PWMeKGlLURx5mz0jxw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac865861-6137-4b53-295e-08da246d9a34 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 14:37:18.4428 (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: xAcXdx3kKEyp3U+Z6+ECLWiW7F7MR+EhP1mqxRjdxX/OtJGs7nrb4LXl7LwpeY8v3C2oh7ug3O/hUrtuweHtWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2644 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;