From patchwork Mon Aug 31 16:03:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Gong X-Patchwork-Id: 11745695 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 20079913 for ; Mon, 31 Aug 2020 07:52:40 +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 E9F2320E65 for ; Mon, 31 Aug 2020 07:52:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="S4kNrR8E"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="CYFaKuJo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9F2320E65 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=vdxPBCFQLFIMQVGgIvSas7BEUYtPc77ObYddgMDAvfA=; b=S4kNrR8ECJ/jWxqkMEYiYBF/1 5X6XyhJYdDT2UfEtMceTUd4vk39rZ1lvvOmD+U4/0T86TmFXq/ex3n4mFf06/VMcZpNpT03SHClkN AmUDM0zb92TcMXO++qI/ArCh5g9RGrgWc5350CfxcW50z57b9EIbUHN6NDL7CrMBjCrcLq8P1TGnn nUcaZNXho/tNq0Tm2Ea98Q1/pJxGw5F+T6/m4AxQjkPDbZ4Fewsdl9MjxN/KGUZ9ie/Y3gHp0114k jJJdA1K7KkAsphWACD67qYI09FVzUPAvWn5HvaEt0Ds1SAAdpY+EBRFJpCH1bT7Kmy1S95B33mCl8 iv1c2YxnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeaT-0001Wv-NC; Mon, 31 Aug 2020 07:50:45 +0000 Received: from mail-eopbgr140088.outbound.protection.outlook.com ([40.107.14.88] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeaN-0001VE-6w for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 07:50:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YiMrqlDrFpwxg9aMuAoDM7IGPBsUdR/ghR0+mI5CM/lxLDYpEcHj9cT7+0HJjfB5X+9x15RvudpPyIadDE+3baA3eynIcSoRW+cKRBmxDfU0cLguVvy+z38PTZ4czsujJm1j39AoomB805GPbNJ/BZ4PIE4xQLJ4PuN22naLJUXK5U3gJOvhrDIv93zRD3xPuXQxg3EMqAnPFDiwZb8ZDG9jPyncvE2oibM+jur++D/Viy+jskR5uf/x4IBIH20J42o2DpIMe2tYxcxi7lX8nQKrajlQ+5i626y4NOgPie8iwmiHDfzECVdoDp3UbmZw5rVDKA30+znnuRctLGTGKw== 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=0izcWiIsFhbVumJfO4SdrrpucrmDe3nP9In+ncyqnZw=; b=SD2JB0+dTL2awIUI8puGZ52Xiwx2Ybk010IB9f08tfaVuw0yOQcXnjFsCkIwkCqQvtCvFNDs0LgAoVZPop31Uj+EHcPRt6hRHavDeJZH3ofeT/UlcuDunsIx2XKjko9DLBUuSwBrsN/d8fA9zQKhsRM7pPx7km2bFqLwEjGeyhJ2RMhbzZfFZIoYakHYul7c0+l5wyEXWmGj5KZ6meCeokhtzt8kXwUYzIFCFOLMgrV4gdWz1Zl38ICoX64PuilLptoqOxEWlGMIwB3zUoUaQGlHaJGV2JUgvuIx/Yz8KrWa2SD+fx6A49wSYLz+pXPbk5niOc//QU2z+5uelO47yQ== 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=0izcWiIsFhbVumJfO4SdrrpucrmDe3nP9In+ncyqnZw=; b=CYFaKuJotO+p8b2IOi0+Cadwtj6lbTa9Y+uITeyEwa14pm2fdhlasPsmaEIfl1HAi8ooLZkSzkKAjl27qPK7xeqRtXNqyLO89EZ62kc/wqZkYp1fcv2/v8YeVHHW3D/4G/31y7xp8ACQphoEYhZT4SNlN4ejz9l10QWhBKQFfIs= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6638.eurprd04.prod.outlook.com (2603:10a6:803:119::15) by VI1PR04MB5694.eurprd04.prod.outlook.com (2603:10a6:803:e0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Mon, 31 Aug 2020 07:50:35 +0000 Received: from VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::ad7f:d95a:5413:a950]) by VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::ad7f:d95a:5413:a950%3]) with mapi id 15.20.3326.025; Mon, 31 Aug 2020 07:50:35 +0000 From: Robin Gong To: mark.rutland@arm.com, broonie@kernel.org, robh+dt@kernel.org, catalin.marinas@arm.com, vkoul@kernel.org, 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, r.schwebel@pengutronix.de, Benjamin.Bara@skidata.com, Richard.Leitner@skidata.com Subject: [PATCH v13 01/12] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Date: Tue, 1 Sep 2020 00:03:14 +0800 Message-Id: <1598889805-30399-2-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598889805-30399-1-git-send-email-yibin.gong@nxp.com> References: <1598889805-30399-1-git-send-email-yibin.gong@nxp.com> X-ClientProxiedBy: SG2PR02CA0104.apcprd02.prod.outlook.com (2603:1096:4:92::20) 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 SG2PR02CA0104.apcprd02.prod.outlook.com (2603:1096:4:92::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3326.20 via Frontend Transport; Mon, 31 Aug 2020 07:50:28 +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: 3bce594e-0a2e-4c4b-6bbe-08d84d828aec X-MS-TrafficTypeDiagnostic: VI1PR04MB5694: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:660; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8MF15f10A1jYEd1UXLDDNafT1cJ6VWudH7QVen97DsS7Qnd9cKop8MTWcqUCgg7OFAtLKUxesQQkoMLITfeAe60anwwPEL0zYx3h9/yVTcNG7wj3uM4GW45nQkZOv4V9Ze1d1IfsAqTBVJXBQjenVAP3NNgorcGvhV8v4RNtBl/9bEPmM6bsbtt1uA5WVF73eDVG9EY/MY/dLl+JO6ArVyY2uu3GRZCPwTXlYmeOh/OFFT/3n7fEx7NhwJHKIoZZJQ+sfb7gzlyHiIgD8HuvB+5xGnKrSzGjPq7qx4T3rViImROoWDZYRtH4ng21/xvnL4QmpeJeTC3GAx3GuYZekVvYT0uowwfbxZlnZ8UoNUpEDlht/bw9W7LQXhLpVjBbgwpgtJzETpEHKO8eqa2s/rDOJt23a+rR2GdHxJC7ji+LVy3EexMRG778csa5RR1VI46yPwz/0oBBVMsBqqo1tkPAwe93QTatTkgObA5NoWE= 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)(396003)(346002)(376002)(39860400002)(136003)(8676002)(2616005)(2906002)(36756003)(8936002)(86362001)(5660300002)(956004)(316002)(26005)(6506007)(478600001)(6666004)(83380400001)(6486002)(7416002)(66476007)(66946007)(66556008)(4326008)(186003)(16526019)(6512007)(52116002)(921003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: bEYxaLzqfb3tUpwyup1Ze5SsAlC3dEOlUBa7OZZespKvE0UkJ65Z/8CNFVF7JhmsD8qLVig7MIY8NVz1vRoOUjphhNgG8eYBCvJByL68RW9FCu+bKPrPAx6874pd8bsfhTcv4253bRi4toMtUYb8zlJmhDSGXejvOR40Ke+SE5xavQB568MsKtXSr9ibmKvWNRt9bxjW6i1L5r7domSggdx28875qRDVwGbN8QHfzmSo1s0JWF1QgASNsiPFIT06Gd/0gRXHt6fQiUeUv83GfanNUAQ/iM9GTObTEYd/3ZyqZkuCPGfbnGcvAPzKa032zOGwxdXAVq6NY8871fNQ7M7TfwukoYnoWRTjmx/f39tVTwV6Op4nDMSxZn1Methn+2dEWIGuympWG114oUwbqLtHYulXSdnlJFJ3BmrQAUBA137MqxP2O53fYHIWH9wvKXi454t37mCjDG593lDpBbs0HGuazSRVd8+ACpjRPU9ykQj/N/UbkqfamtN3dZDEMCwnWigwSb8ZoZSCi5S91EvoU/HvsCcI10AmdP9vs3qHxVG3cxZlHm+b/kiTyHVP/HG+2VPWm63/vXsKiT4mp75Gziuje/xR9a1uFMA6BDsLL/w/ccxO3RBaXxMRplNZRBiiAXcazYHbIjbjgXisFA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3bce594e-0a2e-4c4b-6bbe-08d84d828aec X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2020 07:50:34.8859 (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: 1N4I9hwS/xb/K1+r5gGeckdYfQN+NnoYh7LPfV0vDHlOhid7ttkZIb+PABnMzvLkFzD3veRIEe9Gcf1g8F8XIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5694 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_035039_261248_E4AF9B89 X-CRM114-Status: GOOD ( 14.39 ) 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.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.14.88 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.14.88 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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-spi@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 There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and shp_2_mcu/mcu_2_shp script for such two options. So both AIPS and SPBA scripts should keep the same behaviour, the issue only caught in AIPS script sounds not solide. The issue is more likely as the ecspi errata ERR009165(http://www.nxp.com/docs/en/errata/IMX6DQCE.pdf): eCSPI: TXFIFO empty flag glitch can cause the current FIFO transfer to be sent twice So revert commit 'df07101e1c4a' firstly. Signed-off-by: Robin Gong Acked-by: Sascha Hauer --- arch/arm/boot/dts/imx6q.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index 78a4d64..afdd9eb 100644 --- a/arch/arm/boot/dts/imx6q.dtsi +++ b/arch/arm/boot/dts/imx6q.dtsi @@ -177,7 +177,7 @@ clocks = <&clks IMX6Q_CLK_ECSPI5>, <&clks IMX6Q_CLK_ECSPI5>; clock-names = "ipg", "per"; - dmas = <&sdma 11 8 1>, <&sdma 12 8 2>; + dmas = <&sdma 11 7 1>, <&sdma 12 7 2>; dma-names = "rx", "tx"; status = "disabled"; };