Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp216665pxa; Tue, 11 Aug 2020 00:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynSgGfk9akVXS5PQdgt+bPewNDhIRruYD7WH2UZxG7736AUkDAtF1OqMYs8J7Gz3VBsaMI X-Received: by 2002:a17:906:a84f:: with SMTP id dx15mr24736012ejb.377.1597131709274; Tue, 11 Aug 2020 00:41:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597131709; cv=pass; d=google.com; s=arc-20160816; b=dDFbV2GiP/gySX0/k3xQbAkzF9cBs7WGbBANsr6u2FOPKaW07jRuJ8AqpH/2mEjMo7 q4WFrXPOak8UY415pJ0Ao+XCirLBZ0qF6uB4N5cSINkU52ep06EHAXnnpkf65Ab4eS4z 3rOGI0kfK2WMiYiyISJ7tf3WS/8B9g/k1Cb21U9zvDQkbq87H8NoiCg6XF0Sw+unVWgO 56mRUY4rRaqDi5+BTnm6dtjJuIuVJXxPNmjpxlf/gpYHN0xTQSVes5aum+/zOlzUJpad dbpQOffE1Gnv/VR/xfyfPgSFnEn1u7qOUw59KFNGotzw44Kn2XTNy29fPgYh10LdpJRU 6xsw== 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=UZKBPwv3h3QlWAM24YnwpxiPhRgJFyrgSksGB04gjZs=; b=jupmZYq9pzG5WnwIG2rgt+f+ucCiwJj3WKXy51K+9ltV41ORSVZ+Xy1unHGWDSUz7M HBzDWJ4pOmfr/EdYAZKzHJCpeRF0Xv91aBJ/A5IbI2lSESEfOxcuvnDs11bSY4uoCrWc bNrgEHUV0huxzC1MmXKnhsIIK3mOfKJ6WkcuX2rAg/GMJaV1LYX5oXGjl5Joy73OZwmA /rCieJPEvamzcjOE4MEhHtRWFI6UzXQywMhTm6UgDVO5XGVdyWh3nnSeAAYoLpteufdY H//YGY5dB3ews9I/X1y+c3aauS/n+wyS8RxcpPjmd8zqK+B/mg0N+niYVuhNGinHdm/A ysZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=l3pUHYpg; 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 g22si2938544edm.555.2020.08.11.00.41.26; Tue, 11 Aug 2020 00:41:49 -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=l3pUHYpg; 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 S1728351AbgHKHk3 (ORCPT + 99 others); Tue, 11 Aug 2020 03:40:29 -0400 Received: from mail-eopbgr00040.outbound.protection.outlook.com ([40.107.0.40]:13806 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728275AbgHKHk3 (ORCPT ); Tue, 11 Aug 2020 03:40:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XWkrl6L++20m5xgYrYSvBPJhKk8RdJuXh4atMyySsxTfHGtE7kEBihMXsW1yWdqAS4fqgnr1hzHuxunDkD1xageWqkgiSPLYiOs2x2y3Lpi3ZftaNFr1B4kBjq1RtdZTSZoxJctYh+S3ABMao1mljGylMXGBN7yLdi+sIt8YXnUbm7SStcQxV6hIHTa0kIeIiFI+6ND6GVXUx0+tVZY9BxDBoWTDVh4fvll5mdImNbBF9G/05hIO1ixSoiIK+8pBW2KKbMdqoA7sIZOHRf9qPaf3qL1GSFGFoZd8tSuPtGl++nUur93vYwY9upJZ2W2lSbYEt4lRFBjDq0DpfccSbg== 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=UZKBPwv3h3QlWAM24YnwpxiPhRgJFyrgSksGB04gjZs=; b=bQphhvVq0SAPk5U9Kg4q9fApNiBC+c59ALhOZd1/luJUYpGmBzOLcXhW0G6B4IYMQOUvuSJzfCBYrg639v4Ky7AXOcp7Zt4GezYiYprE+R4y9EcFWKO2X/JwXx5eRIf/M0dFCJ2SelgQP4KpUoAh6gTzdvHkiRzeusKURhYeHR08EDxaTu/9kzo4PV4Dy3xr7+VbLCl6rPiwNLup1+NZnGailKRNbnmTGik9vvlO//GelBETTa15ZvNCh/DMl2WljgrlyDBWqBNp1Q3HfBIAKlncvYUUSvLFYdZ+IoCyfrRLLIW6u5+q7CW3W/HF7xCmaUpEGOE23WgP3cNd2VMnjA== 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=UZKBPwv3h3QlWAM24YnwpxiPhRgJFyrgSksGB04gjZs=; b=l3pUHYpgJaa6wH0MD6cT94sZa2OQCcdrHomyoJlJL9i/i9a0EijD6iNds2fzobQ5XjWZcPUMCSn7jWY599pd0m43qppU4rho5a/OB5gRgz+9A3/Tf6O78WjWvuTkpDgBIsYaZFmx7uiMkqZu5fbCV7X8fyYPKdne5uXrC5lZsEY= 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 AM6PR0402MB3464.eurprd04.prod.outlook.com (2603:10a6:209:12::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.16; Tue, 11 Aug 2020 07:40:24 +0000 Received: from AM6PR04MB6630.eurprd04.prod.outlook.com ([fe80::c9b8:4020:7705:e3dd]) by AM6PR04MB6630.eurprd04.prod.outlook.com ([fe80::c9b8:4020:7705:e3dd%7]) with mapi id 15.20.3261.025; Tue, 11 Aug 2020 07:40:24 +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 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 v12 06/12] dmaengine: imx-sdma: add mcu_2_ecspi script Date: Tue, 11 Aug 2020 23:53:45 +0800 Message-Id: <1597161231-32303-7-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597161231-32303-1-git-send-email-yibin.gong@nxp.com> References: <1597161231-32303-1-git-send-email-yibin.gong@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0014.APCP153.PROD.OUTLOOK.COM (2603:1096::24) 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.67) by SG2P153CA0014.APCP153.PROD.OUTLOOK.COM (2603:1096::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3305.2 via Frontend Transport; Tue, 11 Aug 2020 07:40:18 +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: 671d6b29-223e-4bb2-3f16-08d83dc9cef9 X-MS-TrafficTypeDiagnostic: AM6PR0402MB3464: 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:361; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gDPvHKFB6qqUWMvO5BFj1xMaRvcOGHlsPHb4NkhNOkTuOjWKrwyw8kvQD9KCexUtYas10Kv5MBApOZ/d8S7iUaj4+SBhnIiBM+UUE5b83BNBcrDPDLGbQZvJwhMGh0BFqNvcxT1HUrOKK88/SMrf/MioP9U+ImYyLrgRJxbOF8tZix6FYwG3ZW6DdVOMA5qYhiOarMpuFqHp+J8KMVTm65pHk/jAOkOn8f4bQ/31hLrdawy2v3inde2P7WHhhlrLSn6DurDHKnN5nV53zZ5DrniKVXA+fZqNnyxNU2ca+FD/Swyn1149RaU3LZft3JZFyWJZzmLft7J4vV+pWxsVqRa9EvurBlQ713BYDLiiNMK/TG23IWPO4eFIPQDETseK 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)(376002)(396003)(136003)(366004)(39860400002)(346002)(4326008)(5660300002)(52116002)(66476007)(66556008)(86362001)(956004)(66946007)(6486002)(2616005)(7416002)(316002)(36756003)(186003)(2906002)(8676002)(6506007)(6666004)(6512007)(8936002)(26005)(478600001)(4744005)(16526019)(921003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: onPNCK1q8f1rvh5FHQz9MKcK0rGzfIy6DaSe4n/WNo0PBYI1/OIYq6kD4bLVSye4dsmbXIvtbRQkHan6rnaYBpEVIkSr7TOX+2loqZKUMHMJLSDbQJMC1c/MbMf9vs3JIZUZrOHk28CEQ64RVKpLNpmVEqz35OMrrs1aQW3f9zeW5SWkwPMS+gsoFr+1BRHkKYruQCzqM74qA0SRb1TkOBUd4MqXJpHtJVxEpoNWzXIRw7Ke+7A3geREsnUAG30ycnMk1oJk2R6R9KnGpwdVz/RqC69F4lyexwcr41EVGQCdgwhw+ZW5/CBT92w75Ht4C5lRDikFhDb3TKIOc6Zpw3zO5saRzeCD9u3wHSHySZDhKMLl2Sy8cBd2nIeW6cU3pJ0Odf46MiWxxZ+6EnRYbdyzzmIywBVtTuEj5RExg+CeDQrm+r5iwOwLKGTN9bAPGzyiimB03SRDHYHiemyJk1Q5Jw6eOYkGdyRIfHmmfzQ0YtLj2EJ/2yXFH2qcXWXaa93SDaNB8M7eXHowdEhyljjq+JS1x+oRGy1LYo/zz5EzB4vmy97qrq1PoAEpts729ciA5zw9o8Dm8gsLQ41bsKYbbgWj2YuTIEoh5SDFFUL+28GcnBz+PnASE0NDSHeI7u05FD7sDYRLF5oHMoF05Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 671d6b29-223e-4bb2-3f16-08d83dc9cef9 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2020 07:40:24.6425 (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: FFQN1UKVXafHl7r6P80iej5ZZfZqHdgbD+nLhH8gEnatQYSagJW4AHTQ6STo90XEHWgdMCiLUkHTMF442QIGCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3464 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- 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 cf02c3e..d5d5d40 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -922,6 +922,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: -- 2.7.4