From patchwork Thu Jul 2 15:08:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Gong X-Patchwork-Id: 11637905 Return-Path: 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 216C313BD for ; Thu, 2 Jul 2020 06:55:33 +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 EE4AF2067D for ; Thu, 2 Jul 2020 06:55:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rgfARGKr"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HIXN+b7j" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE4AF2067D 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=rgfARGKrteCcgscMT2KR5YOjt XKJ7VpX8N95H/i+X/RgLQnWmScKXvKlmXjDZdQmsXmJlahJpANQ542zTqWjKfm2cYaJf75yPy1h8N r3TtGyyZ5Zx7OEMBisFIphGokM1RUdNTHqio25HDHAhz+PwXsjt7S7yaEti0aDfcP5ZZ/xNvdig5+ +B8V4jBeR3XrvixdTUSe9hN7mmNcjx1DFylEReol6oijEDx9pN0Vr3ZLnCfecFcqcYmhJy+L4phHQ J9ET9zkVGH4g01P74BE1CW1pa8kkdMPNewYUZV+F/u3/zdh+FrjIDHZIzLekuWmbx4pB81VetwLzE 7kHjoQgYQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqt6f-0007ji-Vw; Thu, 02 Jul 2020 06:54:02 +0000 Received: from mail-eopbgr70075.outbound.protection.outlook.com ([40.107.7.75] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqt6c-0007id-Kn for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 06:53:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a2bkAHlDIfqSQQG6j6ytEadp4vPmewBy1i69jkHWLF81jqEpZYX0+1fAPEMcH+uey+dSiboVqjrJruTXVbDCY6OVyKKZHbj0X4/SefRAx/ht5MFLvQTnp5+RtZMnjDYWGHIMg3/icOEkefEEv9Fclb4Ncm1uYqU+ZvOiXyiwfGciVreZuH1mVMGZCxW+wZd7uhjxo56nOpAtIneQsYgcXDhqFZvEWoZ1oE82ZBkVS9RtmsD3xeAGDWLRYUffwb3mqKAZ2y47gm5Jyo2Tq1YzugTBhe8JBksYd8CBvWsetdMVwcZYzxPWtaXGusULcbZKc6vue1hx+6jV8DebWAyZ7w== 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=J5KcsYx0eMir29ZXASdLlRWAhG30omFpsJQ76mU9uyWkVFrw8Ar3UcydbKSidM/guI2qT/wA0A6c0knT4beqRdr77Yi7r7EsgLkVVwoQx/dW282xc1zzTjD6IJTkX5zfpGKysp5smpJdl5NKM4P7/CuxAf9tlKW3IYkmkPNurPZZF5TJ8+5gWSh3pwon7NmoMCSz3I5BPMOgCLYlUZnehx3yHP3DOCGhQinRquXWmYWhVclkvZ6MWuy39hCVSSlbi0q6wIe5vS7lg4qaE4p5rca9vjfW2/pLqMmosU7Y/l9yup8Vfd8HtIlgyj3VwxPZdOR7MxGEdaueASwWc4ks+g== 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=HIXN+b7jbGhZwSUq7pqeDrEACqkgVrGca4JwpZb65EgYZu2rYARQ6qweKdYYPM5BIOXsFr2cgpwCWlCHshU+VEFbFHpQh1Zd1L1Ee2i+TzYLf7ahJ0sdoxng2hldi1kNZMWVuxAA/3Hf5ZGxBCfuce9VW+VYsMWzlZt/IrPsbok= 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 VI1PR04MB6943.eurprd04.prod.outlook.com (2603:10a6:803:13a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.22; Thu, 2 Jul 2020 06:53:56 +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.3153.024; Thu, 2 Jul 2020 06:53:56 +0000 From: Robin Gong 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 v1 4/9] dmaengine: fsl-edma-common: export fsl_edma_set_tcd_regs Date: Thu, 2 Jul 2020 23:08:04 +0800 Message-Id: <1593702489-21648-5-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593702489-21648-1-git-send-email-yibin.gong@nxp.com> References: <1593702489-21648-1-git-send-email-yibin.gong@nxp.com> X-ClientProxiedBy: SG2PR01CA0172.apcprd01.prod.exchangelabs.com (2603:1096:4:28::28) 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 SG2PR01CA0172.apcprd01.prod.exchangelabs.com (2603:1096:4:28::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3153.24 via Frontend Transport; Thu, 2 Jul 2020 06:53:51 +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: f46b3e57-c827-4189-7d47-08d81e54b06f X-MS-TrafficTypeDiagnostic: VI1PR04MB6943: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-Forefront-PRVS: 0452022BE1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iJfELT0t+8eJqu3F2fnwYfJd2WxICOxjpC3ttMopHviWsuy7Bx/j6al8G1if6UTvAb0chNA8l/d7KhG6mmkH72C4Cmh3wLuwpfjDZJ9qftbi1oj92OQf0MP7lbEsZQ/PPKY+V6D9/5ROn6ei1ucDuH82OU7uOzxTbtW0abbFGOXjf0YUBZRMMPSZceYCrhQLe+1nhR94tpG16R7cjU2TMQAU0BF4m67ePhNBqAnU/Z6sGplyPDlzFe/RfkhKTt+OewJXnk+BFc6R4mnAZ0YFL8roYzz+1/eZ9qVlc1twqh8keQpJ2VaeBX2G9Qd50vB7LUW8WI8WN3hLs+aCoMfyLA== 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)(396003)(136003)(366004)(376002)(39860400002)(346002)(83380400001)(66476007)(6666004)(66946007)(66556008)(52116002)(36756003)(8936002)(2616005)(6486002)(956004)(6512007)(186003)(7416002)(4326008)(26005)(2906002)(8676002)(86362001)(16526019)(478600001)(6506007)(5660300002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: bKfffA41kh3PNkoJ6Slz2peXIpd7A/1Epq2PnqAs2VYdQw+PE95Ghsfh7QK5uESA1AVmeVc7UU5j1T8EYupbPaTjhSSMOkKYGqbuuu+Ksa6XcpKJzZ3idQ5tQVfyrdx6cOhkPGHPpWoI2g7UkugrSNLr1UiZ3pxXjMklQlw3Z/i41ZnZ4u2hRvGSmjyMbBdjfy4A13zZmATLtDJVSVgc/61RwDsgMy51ICOYLVIBZimQsTkHBf15VwXVm5sxToYcobpVfzMUh6Cg6RzSkMa9N8XVEqqDHxWlZysaYpc0q5mjQ7L0d/Ld8VONMHNIpkEiW3XqyqYaMkeeVgPF6cqPgSj02E1BVfgQt0Im1hCKiXntJT/Sx8vPnaVqAbwcCpdSNrDzJ37FnbVBPdTEXgg5Yc+5V/f4OXPhykftEVJMq2R4085RcHBcAnKiPpr2PKTMOCcy9eIjnk50X2CzYeaO84nHzGrTqFPs92svqsIolDM= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f46b3e57-c827-4189-7d47-08d81e54b06f X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2020 06:53:56.1236 (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: i7eCt57tVxjMV9BQvfPsirRdPcNmvhQz6Wo0QBgM4n56wQZt5jcuBWS5t/tndY+oDzW5LS8a3nIYcWt/anu8EA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6943 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_025358_847572_08E8472E X-CRM114-Status: GOOD ( 11.03 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.7.75 listed in list.dnswl.org] -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.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.7.75 listed in wl.mailspike.net] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Preparing for edma3 since it need to be called in fsl-edma3.c Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 3 ++- drivers/dma/fsl-edma-common.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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_ */