Message ID | 1594748508-22179-5-git-send-email-yibin.gong@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=fh7g=AZ=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5CE61913 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 14 Jul 2020 09:30:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A0EDF208C3 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 14 Jul 2020 09:30:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UHOjCDcv"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="JfXEF3E3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0EDF208C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=D+vkDSh4hY4AJWMIzYdQ8zkjOsy7alMMjwAUM+1kW+g=; b=UHOjCDcvRfo7O3IumOTEgwusj E0Wkgej6VdPdoFbqxz6R3KmeaKK7FKvghtsdMqRiXe+ifdZ3JRlvP6206UdiyYdUL248m4UDI1AvU RbcAtAcnsP47UOoZjRQRx6iZhSzvk/ktvMrb4CFjqjFWxXUcJve4BIk2bEGnHFGEyaf33qKrQBQmL ODhYVqKyXRx7/FKICpYzJnPwJCSPkFXYozq0hRohA8NJ/TyEwbqlEEvntZoKoQoRAQy0urvVQZjOt zTjn7yBJ3/0N9u+Y4sfKSlN4C+knGhRpll4X8BFxE7KD2fwOrpiFmt1MVCC5yM6IjOIOeBRSVJziM +roUfuCbw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvHEi-0000eT-Sb; Tue, 14 Jul 2020 09:28:28 +0000 Received: from mail-eopbgr50064.outbound.protection.outlook.com ([40.107.5.64] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvHDu-0000JU-0R for linux-arm-kernel@lists.infradead.org; Tue, 14 Jul 2020 09:27:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UW9RcZN8oxJa0n3VUW73X3DrJU9hkRs2utKujtRuwYUxqH8KI89J5Fqp1x04Oocd8Li6SRS8D4LJZAsRKPMA9i4rrR9vJj6tD5KImwvnXGfcMOcBvng0rWzk9VlYSNMBb8/IIqmDO/jz1YZAsJbBFJk/C6WajXGw030bTtClJcAZgR4o04IapPHpiCKxhnC4hm0EzXZrWN/2mCiq9nUnCmX7CCRLwT8Ot0mwcFB+41oo/s2n/Odp9BOWM7qn7xwgxPSFqaDvs85z5XTtA8+U+oNu5+AmmhlUDuofyPglZtrGmdFrGf+HPNwjtkEirFIXgF1gxfK7S4PZEqpqQ9ukQQ== 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-SenderADCheck; bh=6Y+xW4eUZ3BMp8dGzZfaOkqYoOJccc4HMqibnP9MgK0=; b=ezBC1lAx/KradxnqDyFBY/Pv87T3vu2RXN7H9GeN51yfSDR9pCYFati+L6hg8mOqPA5WczoBEp57ONFoS5bxjEXUG2DWqbnJvGuF4PyNHDredhK6W1ueu/KNT2R9+rmSFj8y7WB2X+xW3fiYecgddeDa33OlXDDFVcPLI/DJj0CGOTEe6xbnFL3oidAoTUTzMhxiIC/GC3hCjPq43k7bFfm2yXg+20Gaic8Pmnho6K7y34JUu1hmswOn+nxlGu5XuOO2WCF77rNniQp3Pct9QjjKDDrHxIb4+0tamBa11wvtX8Am6ZR3i7WQscSZN1jlKjgZwrMnemf3xTFJKSqeqQ== 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=6Y+xW4eUZ3BMp8dGzZfaOkqYoOJccc4HMqibnP9MgK0=; b=JfXEF3E3jCaf9jG9kzbOaouf3B9Srjxt5R20dtDhwvBIzUVIe+VJB2K4RkcV1NFoXMZwGsInJ3w8uEa/v4u+K0MPb693XoRiTP7gD2nULvykYm7Xjwlmikyb4BvzxgU5AqKWtD9KvMvNHgHP1gtcTel/JrsiEKwv3G+GJ6JjOcY= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6638.eurprd04.prod.outlook.com (2603:10a6:803:119::15) by VI1PR04MB6270.eurprd04.prod.outlook.com (2603:10a6:803:fb::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Tue, 14 Jul 2020 09:27:35 +0000 Received: from VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::5cc4:23a5:ca17:da7d]) by VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::5cc4:23a5:ca17:da7d%6]) with mapi id 15.20.3174.025; Tue, 14 Jul 2020 09:27:35 +0000 From: Robin Gong <yibin.gong@nxp.com> To: vkoul@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, dan.j.williams@intel.com, angelo@sysam.it Subject: [PATCH v2 4/9] dmaengine: fsl-edma-common: export fsl_edma_set_tcd_regs Date: Wed, 15 Jul 2020 01:41:43 +0800 Message-Id: <1594748508-22179-5-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594748508-22179-1-git-send-email-yibin.gong@nxp.com> References: <1594748508-22179-1-git-send-email-yibin.gong@nxp.com> X-ClientProxiedBy: SG2PR01CA0092.apcprd01.prod.exchangelabs.com (2603:1096:3:15::18) To VE1PR04MB6638.eurprd04.prod.outlook.com (2603:10a6:803:119::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from robin-OptiPlex-790.ap.freescale.net (119.31.174.67) by SG2PR01CA0092.apcprd01.prod.exchangelabs.com (2603:1096:3:15::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3195.17 via Frontend Transport; Tue, 14 Jul 2020 09:27:31 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 25f59668-d2b6-43e0-82d1-08d827d8247c X-MS-TrafficTypeDiagnostic: VI1PR04MB6270: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR04MB6270BC66954A2449E0A8712389610@VI1PR04MB6270.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WRAQY49qC85Asng1RiNNrEt4RDdskgi9HS99+OF570efjDF6fDjS8ydUVqm96yLsD7P/rdVPHFV3Tp9rNu+wWt+q4RxySkNA2AUdAJNhU0YvRJwxTx4qi7tZcMDW5FzLkF0GsgtIj6GW7028BBe/LvHdwlX1t52OciIy9WnCFZaJSq8TZxDImKibUKXmWLCwaA57SP+uPqspn1IhEOFap4MN3oROeVXRiCd7rEl3FMe0uzOt5j4lE4GMGZaWSh3i1zECtUctwvY7NQn2WTdek8F5600b3/AMdHfAu93MIQ56wY70+EdmcnTVNa+RgsjWRChlzIWOFt25KJDhqIC6jQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6638.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(66946007)(6486002)(6512007)(66476007)(66556008)(8936002)(4326008)(86362001)(2906002)(6506007)(83380400001)(498600001)(36756003)(16526019)(956004)(2616005)(186003)(6666004)(26005)(5660300002)(8676002)(52116002)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: wrj+G8KyKWQsr4Q0Q12PgW58ucuv1TMaQl9Sm/aveveoJBT1VsckXEI0XRvJFrCSBrrHCZ/XEI7t92af11t8EIkiJM++dPeSCo5J2X59AbyFoPyLzzofIhyGUtjUkiyDQ+v2nGdxsu6IIgPk17S8aDnaWSHI4GekHCZiwv6LQYMB72QWawSrsnWFjTiNd8f5w/jEH+ysBjRgTq96PA+cOOgdahUrLx75nfmHQhI2yTV4ptbH0V86UySwDsVhz4t+zj5xFI/CoAuSz1QcE1mdH/EZSs8VQ4Vk7OGG44jFxrw9HPtUBwgkDvGprchElpLY7DwEKmak8XkTq03I96ctgB52B7KlZhVz1Sk8Fsd65I9OGya7onjUvtdE8lq8KnkYEHqgxfXj4CbAnKYQiDxIZHpCPHMg7xxupzJPYGgJY7JMVEpJBrtMYPjF1jp8hFqAUhojuURSHjvSOEoz0iTY0iWac89go/ByNujkuXPVN6Q= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25f59668-d2b6-43e0-82d1-08d827d8247c X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2020 09:27:35.3942 (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: 8VmoAEwxoLclS73kEK9NVXMsFL7OpszC8CNJ8L1kephXylv9EeEoM/W3mvitjwBNY/EGpBjcrLNVGYFlnlffFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6270 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200714_052739_567141_A052E738 X-CRM114-Status: GOOD ( 11.26 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.5.64 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.5.64 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
add fsl-edma3 support
|
expand
|
diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c index 6ef083c..05d56d8 100644 --- a/drivers/dma/fsl-edma-common.c +++ b/drivers/dma/fsl-edma-common.c @@ -343,7 +343,7 @@ enum dma_status fsl_edma_tx_status(struct dma_chan *chan, } EXPORT_SYMBOL_GPL(fsl_edma_tx_status); -static void fsl_edma_set_tcd_regs(struct fsl_edma_chan *fsl_chan, +void fsl_edma_set_tcd_regs(struct fsl_edma_chan *fsl_chan, struct fsl_edma_hw_tcd *tcd) { struct fsl_edma_engine *edma = fsl_chan->edma; @@ -374,6 +374,7 @@ static void fsl_edma_set_tcd_regs(struct fsl_edma_chan *fsl_chan, edma_writew(edma, le16_to_cpu(tcd->csr), ®s->tcd[ch].csr); } +EXPORT_SYMBOL_GPL(fsl_edma_set_tcd_regs); static inline void fsl_edma_fill_tcd(struct fsl_edma_chan *fsl_chan, diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index 87c8d7a..56f29f3 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -249,5 +249,7 @@ int fsl_edma_alloc_chan_resources(struct dma_chan *chan); void fsl_edma_free_chan_resources(struct dma_chan *chan); void fsl_edma_cleanup_vchan(struct dma_device *dmadev); void fsl_edma_setup_regs(struct fsl_edma_engine *edma); +void fsl_edma_set_tcd_regs(struct fsl_edma_chan *fsl_chan, + struct fsl_edma_hw_tcd *tcd); #endif /* _FSL_EDMA_COMMON_H_ */
Preparing for edma3 since it need to be called in fsl-edma3.c Signed-off-by: Robin Gong <yibin.gong@nxp.com> --- drivers/dma/fsl-edma-common.c | 3 ++- drivers/dma/fsl-edma-common.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)