From patchwork Wed Apr 7 15:30:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Gong X-Patchwork-Id: 12187267 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=-14.8 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,URIBL_BLOCKED, 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 C39ECC433ED for ; Wed, 7 Apr 2021 07:20:14 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 86B70610E6 for ; Wed, 7 Apr 2021 07:20:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86B70610E6 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=desiato.20200630; 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=arYe5rxlXbpNERV3OlYSBD30HtQrcdLlpRNfYNdP/CI=; b=PsChw7fmphUTrGW2SGRosHUjH ZWPV4Sn7V5jOX3EszBrXOf6LwejbOjcMBYuHF1BCJ8T0LjVuQM1f4GxGOG3oJQBDHgBHdgU49KLrH NLYc2mWql6RUOTjFMhvzIssAhJPuI1r59vkutjpYQwU9LSMiGg/5/cbrBmml6haiTmTjAnTOYRhNl sT7kIelEneIhEiXnba3gry2+kQXWgTUrnO3URlZMv2nVWaCJr3sgUEMbTIXZl9rAKVBpGFMYpYKKZ mekPA9X+WdOB2pOn1WkPvnb2hcbrhiZksl/O8t9W69hIzD5RfVQSSaCaE43XvUMKw2vY4zrYAgRfz Mf1b9+mvA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lU2Rv-004IQb-6a; Wed, 07 Apr 2021 07:18:03 +0000 Received: from mail-eopbgr30062.outbound.protection.outlook.com ([40.107.3.62] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lU2Q9-004I82-Bh for linux-arm-kernel@lists.infradead.org; Wed, 07 Apr 2021 07:16:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U4PkUjULXo6VGHQza6UigD5yyXBy2aZy8bgqpYd157RVZvIF3xOaD4yM9/AhmB0WVEtwkyHn2ilHdL1xEm+BVIW1oMlMTYKCxt/Ig8+bOukF2F5IHHNTiQSztPUjlCoLXuDP/q8q6qUT4KMTwFDq+YNN17sP13jx9jLqPwahQMlp3dMmU/mRtlihapb8u4WbvSKT5h4Hd2uteK+itI7nnpM5cdTk2pllQrjhgHSjzRdAVDYU9E6rQw5gT8Bqy6es9ehIgcoNKdl1coz/HTcaTxhT6MBArB6gJ+UacpPs7sq8HZVn/PQeUk/P7GREF24MtrpnNCYAyKKhaHIXJjqspQ== 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=fiJnpPaTlSqgyxfFsv/N8BjdfbnBxrwPPZjdYhqivR8=; b=dEnlBx7rjgZlVuogBMo08STdTPgzhDVdrCtZv3tDvDfNjmZBeKFdlaGtHDQtntE17Yt7OIIGbRj1gd63lrHq4VRpN+MwzncttItmbwMPAD0hlZBy24rvA46weLbjdzrJGKgWKVhPZJoHIM0uwCFGtQWSoa3IdE3+92DtdFxfduAFjOKKN9eauQOcs/IXlDsH1DtOedo6tBRLcsnzC1OOEUr8/kIEcAqJEO7cCboRKAMoneJyUYYM+ltruwxPNZGYLzLeKG+QnmpmwKp77983BqJ6lFw5BfgqhVls5S79Jri1gWxYpUuyYXx+wdo2g+FDY2lO2zg4j3R9fadm/MJUmw== 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=fiJnpPaTlSqgyxfFsv/N8BjdfbnBxrwPPZjdYhqivR8=; b=sf7L8fs8BIUC/QyH0+Nsdf7xGXQrq33UT7YdU1Ve8oEdv8+Qpbu3l9qNDEWIcrR53+nu9RpAEZMY6e2qVLU5UzHk845ZA83oVvAMaKl16niE2yN3elO7gRirLZtt/V4EeU3n0MuyD8iE/7Sou2GnIe1vbl2eJJdJyBUaAiavAPo= 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 VE1PR04MB6509.eurprd04.prod.outlook.com (2603:10a6:803:125::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Wed, 7 Apr 2021 07:16:11 +0000 Received: from VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::e8e2:7756:13bc:2cb3]) by VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::e8e2:7756:13bc:2cb3%7]) with mapi id 15.20.3999.032; Wed, 7 Apr 2021 07:16:11 +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, xiaoning.wang@nxp.com Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, dmaengine@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v14 06/12] dmaengine: imx-sdma: add mcu_2_ecspi script Date: Wed, 7 Apr 2021 23:30:50 +0800 Message-Id: <1617809456-17693-7-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617809456-17693-1-git-send-email-yibin.gong@nxp.com> References: <1617809456-17693-1-git-send-email-yibin.gong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR01CA0049.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::13) 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.66) by HK0PR01CA0049.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4020.17 via Frontend Transport; Wed, 7 Apr 2021 07:16:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 455d82c1-d2fb-4550-f9e8-08d8f995053d X-MS-TrafficTypeDiagnostic: VE1PR04MB6509: 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: gLpGknAUk2omSEnjgHYCSSAgNHefMk2Uoy1XWiOAxgBMxjZV0jxsOhwWVUXlHQ9u7m+mCAcoqCpTKnhwi6yxYuLtV5bybNcafJS/J8LnTQ3hJTFcM7+t9Xroo9KR30Tqwtj2tBtImi1Y4DBGAP1AFVXzgltGDLefU+IwpjVRyvwpENh6r3S1Jna/1pe95RW96UpeGzrkTi7jAfSa7BmLHiIkekt4npf01mMxqet1l6OQ6MivuVaHWiXge6WgFForsr0+ChGHMljSoKpZAW8xR9Lp2fdL8brw/8b05L4BF4wEioMzRdVClGTjEzRqCvdx3cq5Qsb8AkM2OLeBLfddiPHLP1ocKS3oYk5eNUTl0QrPeQS6jzW0c7xI7md9xwu0H2MF9Fv3dj3/xQT62aFOvIjVdFr1449S7+qYQgYTPVuXCUh9IHpTv/49I/9ofkdbaOGIdq21u9BDZMBcF7F+PgSiJ9RGHuoui5KxGzjB896qQu8irRsTtl9OHCvhpyHs6+Dn87x2O68MyODCZ1Lf2jJ68Mk3PSR/4ewuPdA/UeE2F1qH9/J6GgBYqGGLnMXdU8hCIBOb5yDkI/0q48NqvCi+gCQm5q9INiGMfGa2+aboHYzrLCJ0nmpqTZesEKrjxpQ1ZI4nzLPGfqvzPdAc/VwEGme4LppVXmmQihsHQP6RsmHRUQYtyoX/ECN98shL 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; SFS:(4636009)(366004)(376002)(39860400002)(136003)(346002)(396003)(6486002)(6512007)(4326008)(52116002)(478600001)(5660300002)(6666004)(8936002)(66946007)(4744005)(2616005)(956004)(26005)(8676002)(6506007)(38350700001)(36756003)(66476007)(66556008)(38100700001)(186003)(16526019)(2906002)(921005)(86362001)(7416002)(6636002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: CUxDZFVK3d0RCl+CEDE0F8bJka9TPzoa/miLCwnHn+cL3IOA5lRPZviDCCmZkZEKpT7u1NN/L3348EDCtSF6Ha0CF/HwiichrNfx5YA1R3g+sS4myDI27t0DIlFbJvGjLm40FWdxPPXkBH8zDkhVkLitRZFM7goE+ka64oxI0+O97S+OitwTL9HxoMoZPApxAMvNc6MbH7YYa6asUM8gyaPkrON5uu8BfC3gwXjJuGlY/8tD8IZTsce19/YLQUroe8NKtKAOV8oFzz8lyAOGvXTx01vpzY/q9TfZt9tf83OeVRyacQzjB7NTFJIL03cF1QiCC48/2iFfTsqYLt6nWxO25n8iBzs2BoIlskP8krZ/C4nSma3bDuZnIyCr3C7azCiI1joR3klnSAlJWsXcTLl+uNl1I0eLvxfv5A5KMInBF79ioKKOjp49W15Dqjoq7575pOZe+QoLkp5Mo+nfn7O3r6tZzSOwasruHsa/YR9DV94lTvmn499BuQ7Od4vmOJZFi+Ek3EMGZDCwV/ontP7tFSvzRASxqwJMhkPnUCcX+v3TMaSYldbF42yKGY+o719iR4TGbCUUQZVZWvH6vKa6FI6zzPPaImByOYSK5zemiUd4ePjxRelfsdfHhxk27tx79WoTJo2waT6OwOmwhScTP3mLOIQ7zEil7FcMCIcrto6QkzwhnqQRjOk86HYD7TTLEnDBRRGXxl6s8Rn+wbMVwJhhOUjMb1Z2wDRku3XaRCV+ar/+u+N9A+L4hS5+as5xNAK6ZCeZOe5pyUVsL2gFENIXw2iOzfhX9LZgFpJplBMunVYGJ1PHb0QhJHuCE08SQUEZnzpw2NT/CCqgUXEdhCMzowpDxQznWdVK93eBIxBzlt+QbyFvA4vzKKtYF4cryp2NmoEeyxpa/XMVivflpdJbBZ36PFc8SCEMlqjuDAOeQWrtbeIAkYg8QlTu11In9aa/Dj7McHemaPoy8jvbHmXfyVtMD4Z3AesEjGblNPuhsWKEzq+zM4RmyC6C31iwqv8JBZz4lb9Qj8fEoMOKricDVtyQhS129Htcmuus0zjfjO9B/x6IGQ+91fqvhxdsJzvhh6Z8a+BxWjjn/9ooUZoc9bR/7UNge2mAD8WMzhXJkq1buNKcoVTs7o8bt0egixQ2Ie6dPhTAL6cSpJIxbVf/wULZOQPXJlSXp78hsvngEWaJOFbxDLRoKQTXpzjfqX7r52zGOQmndzfkiZxteBngWfE42pGfwviIFBfDjoM7f2hSxgE3oUFYycUIeVyXe+V87UuABmJAec5E+JdwUBE4x1ujlADwLdWwB8WzujwMOVWV9DE5kMGrH75g X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 455d82c1-d2fb-4550-f9e8-08d8f995053d X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2021 07:16:10.9714 (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: 0W2X7dQlpVk3Uc/P2C++cqFFjRiPuRYg5lmGsr4e5bb3sB+7cUKFeq6O4ZuwRrymwhs9rsZCdLwh7fzxod7VbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6509 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210407_081621_621758_C6E5F89D X-CRM114-Status: UNSURE ( 9.89 ) 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 Acked-by: Vinod Koul Reviewed-by: Lucas Stach --- 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 78dcfe2..86bd383 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -892,6 +892,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: