Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp517693ybk; Wed, 20 May 2020 05:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbKNnlYpO4ZTSx0yv8wF8DgywWXoDi2L9+QXofvDM8aZNF6WqgkHU4VIZjjjKYpXZGq+QN X-Received: by 2002:a05:6402:169a:: with SMTP id a26mr3066763edv.321.1589978178334; Wed, 20 May 2020 05:36:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589978178; cv=pass; d=google.com; s=arc-20160816; b=cK6AMf5mJiWNzlrDNJuw41wcz3/CfelPwHrnO0s/T3ZZSBCNvobZY6fZIMXgstCKeb 4tEOWtU+y+S3GCugxuqVUyJTSeHGHY+IzU38yOiS00aL9fUkkFIdMdEienYSQZvOoW2U n5nZtqzTjj/f6TSbJcuMVoojS1rs2SeO8WaNKzCmxEWCptzXjOLRW9iALEwO8iq0/GR6 VmNd1FA7PPh/GeHuD+cpeCRqOHBqCqq04X98xK7i031zb5ZfLZLoCj3kUAXFJwL4dyKX XTzqnMonK7oSXM+F1dHSEf80PWdIhxp2oqfSULai1EZTl1EioT147cUrkTax7WryMOC9 HYCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Wl64sj8Lt5Fs5c04EiCMqJ8wORSQcVqx7AMW+mwbu+s=; b=Zp9zRplIsslp2PRyl5GXgS6TiV7Rc0ofTegIhokGXopAJyMWXPWymd+M07voP3bGni z3oO11fHiCvL5YZzf4gKVsyDTl9w5XSFVl4nmN068ojrv37PBuhLX9i8jsxY8+Q+eR78 2gWPkOqdN3vusvQHDq4jqlgy/JPufXCd+4hW0KqxGIlMBu0Q+nW2kChhmK10oD3fA4rL klycwEXLmX/ybTC0rw+CIHB+U7CSUcre+9ed2tAPttuNGBFM5p6+SdlUB8bCrTB+C6ne 6b3ZZmmPyB4XKWdcQiBmwLxrSek0k+CYQL+0Wh8kh23EORWMWLrWs7xnsr0kdAyxP9+d H77g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=fD5qbU4P; 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 t9si1295334edw.135.2020.05.20.05.35.53; Wed, 20 May 2020 05:36:18 -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=fD5qbU4P; 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 S1727039AbgETMeI (ORCPT + 99 others); Wed, 20 May 2020 08:34:08 -0400 Received: from mail-eopbgr00068.outbound.protection.outlook.com ([40.107.0.68]:53649 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727027AbgETMeG (ORCPT ); Wed, 20 May 2020 08:34:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qx3zmNevBUMiKKXnRhJ+iqnRFCfAmPT4pO4qf4jlFaCa9mNNicbuHdpT5efVtrJo27BVlWzKb95XJyrdX8s0dc1abqruGKcuLNDkfbbhI0UOV2RWIs5lEo2E9sm7T64aZQFneL6sQVENwonrxmHnSFadPK65SogeMk0RmXKgI28hLCn18OvW6Ikav3efzJp876W0mpczmd7FLZaWS6SDQkWCWW77WD4P7FsDbGbcJS9V4nbCOOvStcYZq+a0xWN0W6N/9BPUUTjiWBMUnPkFQZFhxWTc0Y0/qiu+upQCJtne9BiNZtk2mXbEJsd+peVy1GJc3NheC5fIYNgTx+m/zQ== 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=Wl64sj8Lt5Fs5c04EiCMqJ8wORSQcVqx7AMW+mwbu+s=; b=IyJbNAyGBs1zM7KTI+eu5EDlqBFVhJlHUSHkoSrYiAMgn4ND8xi2IoklQ7rOKa+v7MPaLKKFiMtCCmy3KRer16DUFZ6T8op+a8K7oIeXezbf8k3/xm0G8TJapdisrMuucxL6YctOZ5yNT/ZWXNHjTim+deQyHCzDeGRNc2YfdkL4piziIPupw4r666bsw/iasZatl6qp3gVJ4+L+mf+IMViZf+fK+E0fonlDcMqMhX1mFbIMFD+PoK/fTQrr+uNUBeUaFkcPvW96yd/9mzhDPL8sw6dY1TSPNclCwxYbFSKtLH8C1HPq8sZhXITe+GvCaDB+LVD2u7deanJ0E5MOGA== 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=Wl64sj8Lt5Fs5c04EiCMqJ8wORSQcVqx7AMW+mwbu+s=; b=fD5qbU4PzPHtrELwZv1NyfMjNcmhTDDsYJ5s/kMi5qmgkMi9GUK1cSW+smVUwTPApmebe/7XRpt8DEPaRpzZo9fB0jmwSZcrserpE9ORFZbaXQPK5fj6PcIcOUJOLwGfeMPlbARmcLyzJHPZumZUgx1LSkj4rx/Jc0DLrkL7YIY= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6630.eurprd04.prod.outlook.com (2603:10a6:20b:f4::33) by AM6PR04MB4279.eurprd04.prod.outlook.com (2603:10a6:209:4a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.26; Wed, 20 May 2020 12:34:01 +0000 Received: from AM6PR04MB6630.eurprd04.prod.outlook.com ([fe80::bdbc:dab3:70f7:d5fa]) by AM6PR04MB6630.eurprd04.prod.outlook.com ([fe80::bdbc:dab3:70f7:d5fa%6]) with mapi id 15.20.3000.034; Wed, 20 May 2020 12:34:01 +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 Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Date: Thu, 21 May 2020 04:34:13 +0800 Message-Id: <1590006865-20900-2-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590006865-20900-1-git-send-email-yibin.gong@nxp.com> References: <1590006865-20900-1-git-send-email-yibin.gong@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0103.apcprd03.prod.outlook.com (2603:1096:4:7c::31) To AM6PR04MB6630.eurprd04.prod.outlook.com (2603:10a6:20b:f4::33) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from robin-OptiPlex-790.ap.freescale.net (119.31.174.66) by SG2PR03CA0103.apcprd03.prod.outlook.com (2603:1096:4:7c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.12 via Frontend Transport; Wed, 20 May 2020 12:33:56 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ed16b479-a6f5-4395-4b4d-08d7fcba1316 X-MS-TrafficTypeDiagnostic: AM6PR04MB4279: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:660; X-Forefront-PRVS: 04097B7F7F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JL0rZA0jzVZam04KdTJgjVqlWsRP4hsrQ1o9dsV+VyIHmck0NUsrqx1XQPPqA9VjvI9tVMqb+sHRYaKcsJycQcDto4zsnO49vOL0Ut0Yiqd4wVMpsI+f6p9WA1+/j2PAz9MtKiNYKuZdmZQY2VX/lRc0K6GKedoMNTrp8MpeVl22WtUggkXk9oidSlKHgROtg1x8ZGqjRMsgdEJXE5g89nnEM1SwbNFa6qeFUJTZI1t941BewMEX79Uu8qo5gDzA8v2YEXamdnAxOVoe2DsuFm2BhPSE32XRJKG13LhWUsoWl96usQcpvxGyzcyFd1QLxPug3ZIrQmuFqxRZWWA310ePUF9hGt0+Ge8awXCYygeZXrX7yrw+SQGhGRo9QYE3URaGd/o+GRESXW1VbnH4Cz7jA8oF96e9AbLe1FChDjgTgQx0227OWo1kF3yc7xGfwKeDhIWpXFoOcgxszXofirazoow3isPSE4ltKuUzrkvPqMFlhnDa9ka7RH3dYCRa62gqjukcE/GKEwXzRNs30HilkA6qiXijt/OCl2pR3POVfVFUsMPR7AxUV1LsDhaO7erM+1+5SvTj6kTp33mB5Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6630.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(366004)(376002)(136003)(396003)(39860400002)(6512007)(36756003)(8676002)(6666004)(52116002)(66946007)(66556008)(7416002)(8936002)(66476007)(86362001)(5660300002)(186003)(478600001)(316002)(26005)(6506007)(6486002)(956004)(2616005)(4326008)(2906002)(16526019)(921003)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: x3r51D89q9eLEJSask0fIBbmzZLz4F+k9Um6frFoE/SnUkgEl/pvcw12QWyEWAQN8+3I1rg8OB2pf1vGF7YurmZ48Jdga78inw6ADlowTiTwHyIk70hbten0LqDHwT7ZGaRLGBRlwQZdNFN9t003zPECZiS/8zaLWefw6R9HDzHbEaltZc5Tiq61tDLUXfCT7hEYMLwiPubCXtwdZKB+EH0oCXNQgzgWETUoScOjbIrvQvn0hXJZtA/rKLkb0J2WMvn2DI5NHZzSCxpIhJAU/+IQNlXwWjhp2zuG3aa6BQHSnYUbNKCy3r+YBMrb0AIu5l+GbRePrE9z/IweHJXs/Y9/735zT8Z//wgpDehUKuFS1ouzrFiecedAIn/bNnz8fKCIbaabOsF0RAwYmNxG36g/5zPwBxJKZycAOnrPjGhA+uos2QAYMxIh8L52oxiTdEj00hq2xWhifrmg0pRgaAkQZspQ4N02cSW5cvkmZ4Q= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed16b479-a6f5-4395-4b4d-08d7fcba1316 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2020 12:34:01.4706 (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: 9hb/jAV2CDTy4RPznvbTpM1h+LEQ3HN/7sGYoMabPf8/s9FotusHQM5PtqZWcs3UcTjxqag8nrc+oMajegREVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4279 Sender: linux-kernel-owner@vger.kernel.org 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 --- 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"; }; -- 2.7.4