Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4300944pxa; Mon, 10 Aug 2020 06:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4BNTn/ZVb3Y0EvC85KOcIgnw5VyDyeVkmM6BckrupASPCMugtEpKGBtaMwWMPTIWPAZcf X-Received: by 2002:a17:906:fa15:: with SMTP id lo21mr22350906ejb.42.1597064851738; Mon, 10 Aug 2020 06:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597064851; cv=none; d=google.com; s=arc-20160816; b=TYwJtmvKO55H1NCUXwrGQQgdY2q3nVQbdLe4X68k74wUYM9feb2R1fUIuiMtPa8M5/ LSYa5r88DGlrrL8njPl+VWopMyO7MTSSmg23hFRbKo+gCCjouvo74fGiWngFjTMTy/5j XAGhshDHC5C3m71cbmR/QCxSXgfEEIqm2TsrxnsIP7KTzaQ2KKosH4fcggPqkiARp/qB MNz6IUEYTeOH0/r3QioNVEp+bcr3kTjGjzfz5OwA0bxTa8LYAqPPFXlvzt03u3gPbRht 7Qtcpj+/kblE/AU4PTlZfL0CX5+/7znCF0Es0y7R7AX7fMmkHWLNIGvXqJi5pDNXZ9AP jYBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bl5ANCoTnTWViXw3Z0Hj+hlcBwzD1OlvfiU4fUr3cFA=; b=yIzOyy5NpWEzC3LdClEoMvK3gbCgpgU9TgmXcWfgKJB4DtD8WBmojtYcYdpa6ec/xM bG089ngQCpUAzNrAxuaGSxswr3TLwuTaa/IwgV98BgIqI8RDNDePIEmBywfZDMqg3CSe qqe0IyK3RPfAIt4lldsnHXRUtrdvIaI31GHAr9j4qV8BvZ/g9EoGzyYzbzC+E2OVnERI X5HDCMP9LI8VNpFX4c2UHMXwTBIfIXa4xheZMKUmTgDl9V9UAY0KrmWDOiR/R73y2pdA oaZIqFAoo+NGp1Yib98ixDOQ33yTInaE9u+/irIudASb/ty2fMtk+4Oreg5HBA3OMbHy /qZw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si10873124edn.56.2020.08.10.06.07.07; Mon, 10 Aug 2020 06:07:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726769AbgHJNG3 (ORCPT + 99 others); Mon, 10 Aug 2020 09:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726582AbgHJNG0 (ORCPT ); Mon, 10 Aug 2020 09:06:26 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4ECC061756 for ; Mon, 10 Aug 2020 06:06:26 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k57VC-0000Hr-Uy; Mon, 10 Aug 2020 15:06:10 +0200 Received: from rsc by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1k57V7-0005lY-Bf; Mon, 10 Aug 2020 15:06:05 +0200 Date: Mon, 10 Aug 2020 15:06:05 +0200 From: Robert Schwebel To: Robin Gong Cc: Frieder Schrempf , "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" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-spi@vger.kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v11 12/12] dmaengine: imx-sdma: add uart rom script Message-ID: <20200810130605.mwruri44ebw5o4ye@pengutronix.de> References: <1595616685-9987-1-git-send-email-yibin.gong@nxp.com> <1595616685-9987-13-git-send-email-yibin.gong@nxp.com> <89946dc6-6c0f-b3d5-9c9a-517f1ed7b5e1@kontron.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 15:05:33 up 269 days, 4:24, 260 users, load average: 0,22, 0,14, 0,13 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: rsc@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 10, 2020 at 10:57:42AM +0000, Robin Gong wrote: > diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c > index 5900e32..4db55b9 100644 > --- a/drivers/dma/imx-sdma.c > +++ b/drivers/dma/imx-sdma.c > @@ -1754,6 +1754,19 @@ static void sdma_add_scripts(struct sdma_engine *sdma, > for (i = 0; i < sdma->script_number; i++) > if (addr_arr[i] > 0) > saddr_arr[i] = addr_arr[i]; > + > + /* > + * get uart_2_mcu_addr/uartsh_2_mcu_addr rom script specially because > + * they are now replaced by uart_2_mcu_ram_addr/uartsh_2_mcu_ram_addr > + * to be compatible with legacy freescal/nxp sdma firmware, and they freescale > + * are located in the bottom part of sdma_script_start_addrs which are > + * beyond the SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1. > + */ rsc -- Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |