From patchwork Fri Jul 24 18:51: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: 11682909 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 8FF9013B6 for ; Fri, 24 Jul 2020 10:39:37 +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 3669B2074A for ; Fri, 24 Jul 2020 10:39:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hOS5eMW6"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GMtHJ9yC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3669B2074A 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=hOS5eMW6EyEjbXWP4t7pcRfov krgaMCLVqPfRktQzY66CT2tSQhzNaQb5rKfaGo8MFYt9Zv31v3rFe6NFt7vbD3/97mmqDTgWYAXUC 6G3+UW3e6MRbL7/Olkk1Y2ULEW/derF5DkbGTnEcZ5agVU1jiu6lfYxYz2p7b9pcLyph5gj/8aP5b oKqOyiZRkBoz06KV+9denxu1HnbHdIeXUZ68Jb6lxjhVQod5MAER8Otfd4VL9N6SQYxgBoR769Lk2 xcVod0nA7h1eo+40nqAFc7neyR/oNUUi2H2E1skT17C5oBB/AnxZqSBZLZHRzE6XuVtjZlTsWjpts NeCCquo6w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv4u-0005re-HT; Fri, 24 Jul 2020 10:37:24 +0000 Received: from mail-eopbgr80077.outbound.protection.outlook.com ([40.107.8.77] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyv4n-0005pc-NS for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2020 10:37:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KmCy8F0C7o2jKZO2nKEkHTCUwzxlg4HkKv0hxGKDUQvNLafILwpZjM+0hMKzU3z48hSvkuFlujQqak7P1GmQ4v8cxkBi6bx18PZ4bBuDetd4Q1sAcbL2HJ2fRKZ66hp9XNc+5dihk3eYQC1jxxZ/ZYcHTb48u5wriSMDEYpH8uvU9bA2XmJ19QzJv1qvO2myhyOL1LJUajlyroXUheOXNbimYgRrUN0RnB6kgWNJ/yI7rp5XzvNceGcAg/R1RQ1DWzL2koLxPbJC5aDUPcydm49Hi0Avj9oq2L384nnK6h2ojuOHwrIs8apdOjDoz1IkP1yNVjODnJD/6O1QUdTKiA== 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=Dd0FnDmadFViUZng07lS8pLrDQAHlURW0NphXgeHAazLy0O/eyrWwLn5FvfwHd5tNfDuppjguD6jH2BsIh+u1fJaZd3SQ2Lr+B0j3td9qw1RA+alarGJL8wMFoVTP+liwWJuHSiLuqZisis22DActH3Qa1pBUF3DJZyOt/iqUee69m1hvD6toeVObZqZ3Zbw8tSv5sFWbgMf6n4IU1OpmEu/vOGTH0+5+PfI7PHMZJicnHW6vNXYNplwR0ugdAwmbwU6MjvHiMrWsTWdfRbS9eoMqlGO63RCN58CZyHVa6ViaIFNZY/s1qpfBx6HtsekwkQhlqu9rkEnZ+LD1TRzrA== 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=GMtHJ9yCGrIblEHo9JpgmVxUrDu5hOl+oaJExSrXXbfLqY+9xg2nTp+uzResNx5TZoILZEJLGeOxnJ0b8LxxjrpRb8V03UnT+sefCOeTvsMiNxGJs9KnI3l4cwTwQLC1s6PKPRLakWyWNR6lIBQlJFHXhg9ItszwnCOulpsbY4Q= 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 VI1PR0402MB3710.eurprd04.prod.outlook.com (2603:10a6:803:25::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Fri, 24 Jul 2020 10:37:15 +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.3195.028; Fri, 24 Jul 2020 10:37:15 +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 Subject: [PATCH v11 01/12] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Date: Sat, 25 Jul 2020 02:51:14 +0800 Message-Id: <1595616685-9987-2-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595616685-9987-1-git-send-email-yibin.gong@nxp.com> References: <1595616685-9987-1-git-send-email-yibin.gong@nxp.com> X-ClientProxiedBy: SG2PR02CA0046.apcprd02.prod.outlook.com (2603:1096:3:18::34) 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 SG2PR02CA0046.apcprd02.prod.outlook.com (2603:1096:3:18::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3216.20 via Frontend Transport; Fri, 24 Jul 2020 10:37:09 +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: 252a32a4-daeb-48f7-e291-08d82fbd87c8 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3710: 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: 9j1penTa7bvwP8flPQakT618aIQQWC3NqwSuU6Y9sukZanc2bl4bMqE+W3RSoH8wKIe5+SYapLAJUNwbiZyj3if9qclFn/A/keV7DO/3Lojmp7kvdoIdMmh69ss4efixfAwH4s3kirwCI4ag34WfOZE1pSse//Gnl18+eD/U/ELxPwR1T0rXg8v5laXsvGABQtWYHrkwnHG7EG2KIpfhNWkQnbsAQwxQu33oKKTD1tcZxTjaleO9B+9SDkCQFFZzOdnlRL6OwbiSHYuwfjE87yzRgARfK/wFtQEgY87+tWbl8OAIeSs48Vmp8zytR4C/aMLdsPNZcDATV4Vvn5JyGre3reDtr5+S5VPjfrIfzXNKniJNwR7sqx7m/QEfAzxh5xfDBb9lWwCWUA8OFKwwZy0kUM4N84IXExCFzSqoq1qf2bt4lOcBKKBFpW5zAZAbMmdb3GseSFTXM1jMl2RGujYPTogfQJnzSHmSbKB0Be0= 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)(376002)(396003)(346002)(39860400002)(366004)(136003)(16526019)(186003)(66476007)(2906002)(8936002)(83380400001)(66556008)(478600001)(5660300002)(7416002)(52116002)(6512007)(36756003)(316002)(2616005)(6486002)(8676002)(26005)(6666004)(86362001)(4326008)(66946007)(956004)(6506007)(32563001)(921003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: GMYROg28qegConl9DtP8vkZgr5gA4shB62xaTQl/NhAOilZbtrEBYWjqFr594wV8shUT//AFhne/VkWUeydINeh+H9s4FiU4kqk8uKyABxm3Tm6r5+9MTIm23sM5teWDj2Fykr6APx8LwZljN6aQs/G7LYoFZiznyKCqWho0Q2TVvElxA2sYzSeyWICTzBNMkH865zGrulJZuFZfxBT6BqjAcND6z8RXx4xchjbhNgLxMvMtDQYtZYuwsU3SQqls4oJ6PwbDFdmIoZ3mnMgM3VA1pKUGoZymzf2VHkNQAyvbRPrPIrqlkZTKUbjtbTyxeScQS1/XwjXr396SyzCSFZuhsgRww4oYbfKxSLLTiRqTdGh+S61eACSv7u0r/M79Vj2R2wuJxc2F4nrL4Eo5KEWqn7S98YqSMwJyAwy15aJcGLmLsfLArtFzmKh+jKW6+irVE9KssY7P7MLwTRti/s8O1QA6usu8twONwgNaDs0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 252a32a4-daeb-48f7-e291-08d82fbd87c8 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2020 10:37:15.1056 (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: bPkegzei+Ihbgxah4LQgR1OyFJ07MgZM5yx0gG5O11DtFVQgRm7K1exLH3/FvwHq1npw8WojpeBtMsrdP5UHag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3710 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200724_063717_857387_7B1F2681 X-CRM114-Status: GOOD ( 12.23 ) 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.8.77 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.77 listed in wl.mailspike.net] 0.0 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -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: 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"; };