Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3772159pxv; Tue, 13 Jul 2021 03:26:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc8XqIDS76tx62oaa663MJe7Gw/uZoEMHSok4SNKriHTVh1nqPz2S+5xbrTSQXqNtV8YhN X-Received: by 2002:a02:8783:: with SMTP id t3mr3355719jai.45.1626171984021; Tue, 13 Jul 2021 03:26:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626171984; cv=pass; d=google.com; s=arc-20160816; b=VX/eKnk2Ll56lr/kmkDZ2dRNyfGTcxt0ntVZXPUb9KUzxUXGJNeQyOluhntEcUqA5k F6+gm/T4YTFtwEv53t56mdfAczOna/Sm05K+fgpTYmbhjSyVG/u8Oyt+hNjgaEALiC7s 24D0yXrbQe78nbu1oUoA5v0dP6dB2V8DnhUylvDdCijJ+hGg8vjE+8mnCUEqrNMTjU52 p/aOKmT8uR5tGtZohHp6EWl7y1MAIARCkhjEKaAZuYPdYxla5XJWXs9KyCkek/jH4v61 7VVVIKdxo+UonuJ/MkcvaAa9LHoYs2CxaWtpJNJ/yzsSCHfyOyS0BURX4PsHBbtNjldu rIKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QJ72kGobutbcDxLx+bWS8PzUgxHjzbso6I9Vt7rhhAY=; b=rikdyQW8N5DbZV3EqPTQ2CvvpL7WGxoe/82F7hUWEP8hY6gk+SZCUBBUAmeSbl65eH XlAzdGN0r501h8sOK7KGUotK4M7uW7tcp0p/f7fWaRP9zHOStQphccya4nUk4tvuXb8B DMl1yyu9tQNf/18IzPacY6UDuKj64SdcI4WjYyJZL2gJ16auuAQSQfmeQ2uJG1VkSHq+ XNSph6IBhnc86K85N+/uk/7tkxZiej2hYRfrKQhKWTOTeGlap6LfWSaz9+hM42sGKaBr 6adrY1H06gwinCDR9G2/5UrFz6csh1lOIOXBOyvUzGT1ZK3caQnh8I1lEcGGHzpMnWBi 6EIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=UEYIgDHI; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si4033868jam.9.2021.07.13.03.26.12; Tue, 13 Jul 2021 03:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=UEYIgDHI; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235572AbhGMK2Z (ORCPT + 99 others); Tue, 13 Jul 2021 06:28:25 -0400 Received: from mail-eopbgr20041.outbound.protection.outlook.com ([40.107.2.41]:36071 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235571AbhGMK2X (ORCPT ); Tue, 13 Jul 2021 06:28:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A7a8hxnPgyM9gHI0WUHIyqmRXsw7IiOp80G0o4jKSSqCoufi8QHcS8cW8aDUh7yqNRyU1ebInHE6qyiA+d1Kkem3wPaorU67NLPBdYCZyv04wU/j9y//HbYDKEycluaUoXQwjCqfnF3UN1dtNrCkovf0hTUS54m61FFSeXqpB5CJhjBwzpgYU8P3OQSt8E4nNfyJ/J0Hrw9XSTY4DMdzRpXlINeRg00drb4pppQhE2YQjzswFIgYZskGKGjmVB6tTqa3UFlJzi7GNDfEDejYWNxvl9IYp7JWNExy8kQxAuKDZLMyYNPo1EK6IX8m/G/bwPoWFo0PgAaThRsDlmSAxA== 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=QJ72kGobutbcDxLx+bWS8PzUgxHjzbso6I9Vt7rhhAY=; b=LdvLJxqlN+L9+mAxhJDMyoj0ha/+O8gKTP6f7AyOYLgZNrYgU9F/WsP5o1CFG0BvB8b4sIyXS4TrfLgtZpS8CURycc/5jqLgd2Ij0qnbBzL6fZwumtqIOlAAkY1e11oM9NW5dCYXM/m7TOMie5En5BC5vEhxtRcSaj+BDjrLKxo/T54a95TSNsr1OkpTTIE8BqrieMPoH+tZOwatmV9JA/1b+7pTYCz5Vfclz8VwNyWAtOtMJ7IsSd+eSvFT4LgJ6U4eu6U2qQZ5E9cy+yV9Lj/Aa+2PcOfBzDEXeAfdFeqD7LtUrWfHBeEYt3GqJ31Wta8QReEHi5KHWWk+aR07FQ== 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=QJ72kGobutbcDxLx+bWS8PzUgxHjzbso6I9Vt7rhhAY=; b=UEYIgDHIFj6kaapJ1xs8zF1YGiJBuCultzIxoC52tVR5qE14fN/+ExtY9gS8JU4FhqNpE8BZsuxYkq9YJyBmKJRkjLaNd9gjZBu2QT24Atpe05dxCDnT7/CqGSSi98/wnHE8OUuT6dR6a1kVh1pf77ZEVCbihrcp63WLmk69yI8= 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:25:31 +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:25:31 +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 01/12] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Date: Wed, 14 Jul 2021 02:41:38 +0800 Message-Id: <1626201709-19643-2-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> Content-Type: text/plain 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:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b99b9d6-3140-4a6d-b8ea-08d945e88abc X-MS-TrafficTypeDiagnostic: VI1PR0401MB2288: 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: KALfZ8SykTSUAymceeL2W/KodJm6Hfvhs0IegKZHBXTpvQGoMdf2L6x3HHuxV96iySJ5xxUJp7yVu/MATB4A2PwgaIr3JI18Ga6ZlOnUkN1BfyeIurUdaLcSLGX0ev/kN02AZutuS1nIfei4l213Hff4SCw7YK0XPDlbqh/XQ/jW7qb9NeKHSzeRBBe6tNTzPQ/AjlsYUMqn0K3be4WWsSk6S5lcDB6qb4BSK8vpRFp3TYFoasUpRznC9EOTQeWtZkhspz1IJOgRiSIMaxBM2hZgSQs+U9Oze6QjT1RkoLKs7tvymr6mERegU6+IGsX5S6yk9BzUAMALL5u6k97IYstdVmVH1eIJxWNDE8TOzyTQn4ct8SJ7urj2mN9EVFrfAlTPzc7CUtbKX9QJHq/UZDE6smIupTQARQdckeb1Ezj7axQUHyt6ZmozndxObKgntkhTBEQW/NBK9lM+FAardg+pkKpH6nTcjB8xBAsG2z621YT0NYy3cXn9H9920Syj+EcVwclfZ1V9YrX51yWllDyNMXCWD3P1TH6bYVdp2/hZarmYfqFPhmzb1/Iz4EfbsN13H8ckcqnPe1BmXSXhvJNSBCstChqhzpDjNCocIriwne09XYkrFPev2/71W2K3VGu4mjcBYKehLq1updKtP6Y4xA4Qzwsi0TLFCxI6ny4N1SixffSvpa3h4D4Gll4EobqcyO9Ut2dSqi9vyMOPocuYfBaig7e0mVagiZX7jBPI8t0i7TJVLozvVci1iVK/wWQxtWGEWVN2osvmQ1EpVH9OMg7DX/5/4hG5bQFWuw854Vy2Ocpjh5pBhfUvsy2fAqFaLN356vK3Fj3YRrswgg== 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)(83380400001)(66476007)(38350700002)(52116002)(86362001)(6506007)(8936002)(5660300002)(921005)(8676002)(36756003)(66556008)(186003)(26005)(66946007)(38100700002)(2616005)(2906002)(6636002)(4326008)(478600001)(6486002)(7416002)(956004)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MXNdLFsSbsW0Ug3i0ODnxYgzpSkujaqlaVGgfd5D8y3Q9mY9FFnl59ddObJ9?= =?us-ascii?Q?hjcQy7uDsRCKhulIcoFddHiImhP4QhwUz+7TrbkJ35M9Fa/Wb7p62MmjCqsm?= =?us-ascii?Q?oLmb0qMn+iRYQOSIp2Qzeows4XG/DOengxJ9n90AGz5fyqeOPOtqElDVP1ff?= =?us-ascii?Q?GAsl+kWotpR4vCYfBziQ9b9wU/bmkQg0E/4TdfkIyKLo44bL2yY6gNOsIUYk?= =?us-ascii?Q?wvCrIdIxgn0WB/b3WX7M6+Y+88WCpBy1feCR9QuUftLB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ZGEysZaXcSXc8NgDKiA/K+iz2qCW8tY6lClZ?= =?us-ascii?Q?/IvMHlmi47DVGaR0TngfgDBpaEYlGK++DxXAGifcqliMdF5zrBIGpiuYe8Pv?= =?us-ascii?Q?xpqHXoNctwU0NgK6O2NDFgGd2HJn27vkKsZ/BkotMP5C1HNOAFBedJjmaxJT?= =?us-ascii?Q?05BZGxzmRnOnzX676XjyOVMP?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b99b9d6-3140-4a6d-b8ea-08d945e88abc 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:25:31.3628 (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: rtFpZwsVfEKvWryRpOzb9qi6a6wEv88//vtDS8zxhRRxOgVzO/5dXHYgrWOcEGuEtMBQ3I3VAA+2gpA1dvSyBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2288 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 8d209c1..9caba45 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"; }; -- 2.7.4