From patchwork Tue Jul 13 18:41:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Gong X-Patchwork-Id: 12373627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00, DATE_IN_FUTURE_06_12,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 752BAC07E95 for ; Tue, 13 Jul 2021 10:58:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 39C8461249 for ; Tue, 13 Jul 2021 10:58:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 39C8461249 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PmahvumpAxLxGAB0p4CpEfDNh26Hj7Z6N6Hn9ZnvWxo=; b=EZ+cKLtpFWb7h+ tzJCRFE1GqWWtefrSdmmm6m+VsllmDV48zQ7aLzTgjOrWb2BiJRMjzL2Mev1HhEEV0y/ZWOn1b9j2 cVkm0rNJcBms3VyjsFUyZXVbWnuhvB5YRNkfg+hEhRzMeDboFpn3IZ2utIYu0yC7Oft+wKwVhD5+w wbxDlO2UPpntOQiucC3U6weYUezYJvFP0Li1Ma9wKJvGRvgsqYkJbPT0cH/UWmLMmmercZX836elH Z+mpun2/qpwR5y0gN1uLczOj++MGWhXRCQTUlWwCDc8RNPJLTrrbCw690d0TcV+VCxjnAaM3Y1QBC vxIMvINYoMTHNBxo2Wfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3G3l-00A2vM-6K; Tue, 13 Jul 2021 10:54:45 +0000 Received: from mail-eopbgr20086.outbound.protection.outlook.com ([40.107.2.86] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3Fc8-009uY3-55 for linux-arm-kernel@lists.infradead.org; Tue, 13 Jul 2021 10:26:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F9QYQl+6fHbf+6AeqSZK899HqSymO3PvzSFdlwBxPPSwoY18/sfLbcMLCPaFgO/+WImozy74ocpGEv4kN4h02fudCRLi4nUlfYtd+x2op27ClugxPqiIpnEEomK4MmDIOMKUI3ALQPCvDCsADoKAVqqQ+juoNWOUuqayGwr9VYs9x0GkwK7G0eqrLocBWhD0nbi7ogahP5dNqgvc+fqJhO2jNQMJutrkGTzeX0o2CtcGDnGOPEuSVNL9Fz9PXQKFpI6uMZHmPk1Ir2LhuKgfPXonNSeUEQFVKJps2CNDiBj6hhVKaPpfDCbFHOPvDNfbhk8EWXPQ8eAVF7+CArsJoQ== 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=5D2/Czfs1P7IlGvBqmpgpZj1U+vvrqQzpMQiJsL/4x8=; b=LlSuIr+DTVR+Pldl/undWtgi36knylMSxYm1ZyUPvnMnkAux2PLKOZBemiip396F250Alwzd5Hz9bfV4hPY3T3NX2yxrV7dQYTKgLvtmpnHBWMgUn+jK1fLNI/P6EMoEYStLK4V7b71z0UVs9D37HQwDSrt8WiUi3DEkXwBnnWDNJnSdOX6Qod5tJJcHD5qHYTUb5Nj7VpyE4duFrnZjqLVArChaUJYTHRDnx3c6BPs0vEk+xcwYnqhtNahg5WaTuPSxRrKmxgRcVeUrQtZInQL92xfvxE1V18IVh+zxjua5QnAL2pQiUbVxi6viHe+mNWxifwJ0Rw+5YzjlF16F0w== 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=5D2/Czfs1P7IlGvBqmpgpZj1U+vvrqQzpMQiJsL/4x8=; b=dQ2kHwt+K6QH0extTguJg/QfQQ1tOy0VPZbYJzEmjA5aGNM3/9kIGLgSFn8ubAERcA3rmNKClajHfFQMPwivx4betlmaLkpWN9Dyf3cGRA1YJ/Ad8n6kgvgg7uiOS8fF7/oRZ1hIXCJQ++AZiV9C4eQIvY+rFzB43S3ZSr+caSg= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6688.eurprd04.prod.outlook.com (2603:10a6:803:127::25) by VI1PR0401MB2288.eurprd04.prod.outlook.com (2603:10a6:800:28::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.25; Tue, 13 Jul 2021 10:26:05 +0000 Received: from VE1PR04MB6688.eurprd04.prod.outlook.com ([fe80::a978:6f38:2bce:9076]) by VE1PR04MB6688.eurprd04.prod.outlook.com ([fe80::a978:6f38:2bce:9076%5]) with mapi id 15.20.4308.027; Tue, 13 Jul 2021 10:26:05 +0000 From: Robin Gong To: vkoul@kernel.org, mark.rutland@arm.com, broonie@kernel.org, robh+dt@kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, shawnguo@kernel.org, festevam@gmail.com, s.hauer@pengutronix.de, martin.fuzzey@flowbird.group, u.kleine-koenig@pengutronix.de, dan.j.williams@intel.com, matthias.schiffer@ew.tq-group.com, frieder.schrempf@kontron.de, m.felsch@pengutronix.de, l.stach@pengutronix.de, xiaoning.wang@nxp.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v15 06/12] dmaengine: imx-sdma: add mcu_2_ecspi script Date: Wed, 14 Jul 2021 02:41:43 +0800 Message-Id: <1626201709-19643-7-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626201709-19643-1-git-send-email-yibin.gong@nxp.com> References: <1626201709-19643-1-git-send-email-yibin.gong@nxp.com> X-ClientProxiedBy: SG2PR06CA0198.apcprd06.prod.outlook.com (2603:1096:4:1::30) To VE1PR04MB6688.eurprd04.prod.outlook.com (2603:10a6:803:127::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from robin-OptiPlex-790.ap.freescale.net (119.31.174.66) by SG2PR06CA0198.apcprd06.prod.outlook.com (2603:1096:4:1::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4308.20 via Frontend Transport; Tue, 13 Jul 2021 10:25:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9de4c7f2-86d1-4efa-d14a-08d945e89eaa X-MS-TrafficTypeDiagnostic: VI1PR0401MB2288: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:361; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4zQcKeZcj8dhEZiAmEoMv4o+MgXKF16mcfCx4emFc5mTmV6pyae/qpVRlgmDo8dsdywfHibfY65dqAvyRlGfptRgxe3X8LFK7zi2WjyQvOeG74SzlO0m/VapkJauhaMrPDzyt1sKlWCiA3wEw98welyJyfVZ6hRUnd/LV5gwND7c+RiMmCxsR/VK+Vu5X8BiTjnYdXYHbLX2nO0hGu/Sj05L3edTLD7V5JIzNC+tVYaSMdCpKu0AVW0LxlXPIW5dyVskLvugaYPlI1TDS0nGlsQ4G5ZGi0M3LyIlmruFRQZa2Xv2BIV6feW5BVkc9Rr8nt4aHwTBHVAvsD2G7xH/u3+xo4p42LZQRCFYQxnUbpVc99qalNjyA6HriE4Oz+0VhrtuqWoP5J8kuJMQgQokr6DDUVeWisapz3gFvJdv8iH3ONhaVyNV6wUINPPa6tmICbfGeZ9H/syZMwiK9yrCyTEuzpReidagME7Ilh/VTH3iBfrLJGs21B/H7qrhpVmCJcDjjOLtVzwtH5I4ZasNqSktCyQg09pVVPHeN2ZzYCOUjhy9JHkAUc0c65utysYcxpg8rqkUJrQ2CWxjxFmQe0KHXkv95vml+O8+yQlev4vcmpC4lva3AnGyxyi3jrCkR5/QDXph405bqgLj4Lm69lpHThIC3cKZzTYG3EEdLaksf3eXKfAkDf2nu+SZ0Xm2RymKFIqvJsudkX4PZTBM66IqdOmh2Hg7wTdVSXBPCi8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6688.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(346002)(396003)(39840400004)(376002)(6666004)(6512007)(316002)(66476007)(38350700002)(52116002)(86362001)(6506007)(8936002)(5660300002)(921005)(4744005)(8676002)(36756003)(66556008)(186003)(26005)(66946007)(38100700002)(2616005)(2906002)(6636002)(4326008)(478600001)(6486002)(7416002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ukQcSG7j3zXW5VOzGIE7DLktOAWy0cuMJ4BThMnGHc+mTvRuvC9K5VwlbDj6Eexb2l45NEV4IvuyLfg9xVCYFTVypbqPx+wjb2iYXB14/UyHEu5A3VhAaa5RVD/H5ryg8icuXCEnfqmTbDLRpx9LNPcSmD1BdSvokUr1jPSsxODVtt8c5zd09qMrcw1YyuXBwc/NfA+ZT3A6u6OyqH236bTZdlJ7Z5gy27hJN+8suDLtLwZoovrA+Qil4Y6clVwe3h1E1R91Oh7VA8HzY7h2RjOL3wZdOFI2UGP90R9bTrHq8udrOXOoe7/Qe68wHTFUbsprG2ZNE+Q7sYF9QMyAeDSvn+xQpGLys+xVbnFzSgmSghYsyDeAGXA8EXLgKi6usPFNSAWUAdqsSKWGxeeT4+goDjyhdh9L8M7bNfYxzM+LWRHwndSShF8heyctwGvGzeVcfZ7DkvI+SPlUdcU8obTKOAvL6SW9gyUSmD45zUbXX/eM6OfvczyLPG9jeM1xCkbG0GjpIH/oaZ9eBl4Ljgqfs64gKvWeZPdLNH7TdxwpzQe2WmKRT078i/CfotbnwSC7vU2/ehdo/lwUPyDfBN6v0ZTOQB9EfEj6gZGbYdo5em9ZcnBn1U1Tiv0wCIkkcuhambFSemenOn6UHWHDkVDClo4jbMLQJJ+MSo0z0Z9Ga1V3cyD8zN34DImZj665WLuv0WkTCu/bJP/2j5ulbity8DGTXVHRbLoiGjZZefQbcf9XHe2QSPi1jDIMgJAUx/S/+I+7852OfvdudQpTIG7PKi2kDiiEBRGpXVufDjvTPp6Ew/AHfPjkjtUUUdVyN5tz2RpF5H0shKNqTHAhyr8GVxOMEoQsKTJ2Gwh9O1on5kXPjf3jskG7B4oiXLlkBfdMV06NJvjqlJaA+up/PCIxjQw0/2mKFQn6yqITj3WVjIz12PQ0BYwkvwt1bj9NtoN02PoLhwslCRDlaJlF8LEIlR+skZRMjy2y3xPreUe+hsxYWzZ/dAr3UpX4NCZEjZ4UdvnUYDml6ZtumSf/pUeCnaeWBvDX8bK+xtlpD1MKY/o/dXEkexEGNlstvKR2dGWKDIXr92ANWyEnRU9tapqi6XQHBN3yj2W5mxYiWN7C7N23h06Zbbv5oRFFI6uFyA6t6QPomdZm0ooNLY0O5x36fWjwdSEj80o0KjWeIPUFFsBIYU6sfJQPu4qpVMUCVWR92I3AHfmhMePSQn14t0/9ONQtt+27e1kewSV8vgWpFfa2Ekmke1D03K09kY35FZdE3YlK/EoXhBmwLJaZIEjK1D5uYeGGffUkA25ZQqRvdVpzxSXj1uEtoNmBwoja X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9de4c7f2-86d1-4efa-d14a-08d945e89eaa X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6688.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2021 10:26:04.9368 (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: zptVrS5cH7TMvVRhjgWvQNqg/yyzM+qncVn+j9DZ75NB3gQcFXJuYltCUobFxM6f21+OMxdOV7pVGEJI4NfYLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2288 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210713_032608_254492_CEE00D06 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Reviewed-by: Lucas Stach Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 639a783..4cb2e84 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -946,6 +946,10 @@ static void sdma_get_pc(struct sdma_channel *sdmac, emi_2_per = sdma->script_addrs->mcu_2_ata_addr; break; case IMX_DMATYPE_CSPI: + per_2_emi = sdma->script_addrs->app_2_mcu_addr; + emi_2_per = sdma->script_addrs->mcu_2_ecspi_addr; + sdmac->is_ram_script = true; + break; case IMX_DMATYPE_EXT: case IMX_DMATYPE_SSI: case IMX_DMATYPE_SAI: