Message ID | 1613611500-12414-7-git-send-email-peng.fan@oss.nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3281577jao; Wed, 17 Feb 2021 17:39:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQlKNbJQYwPYYpSvOEwz68ITgMx+cbJBtT+7FQXmJRcHDpE57gWNll8GWrLcEeKs+36T0o X-Received: by 2002:a17:906:e2ca:: with SMTP id gr10mr1620611ejb.507.1613612378679; Wed, 17 Feb 2021 17:39:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613612378; cv=pass; d=google.com; s=arc-20160816; b=Kx9Y/Pit47gL07I5IyOGZsWWabIgxHCHnsdb3eR9/sDy8RRS2s0l0JbBRuSr8dWkP/ 9g9WHv8gIbMTEa+hN67+V7MECN3TQKv0VkJmKxNXe+mRcdNZVlnCI9aovtBvfw7DGApR lMES0SwtryjrOU7/K4MzlEVWnm8pmYwfw764T0dTv/ZlJhgYNzIb1xaxtTj6ckzKxP+d eY7//MzpGHQRNYsU7F7jDzvO44HjoHxjIyhcXPIzrPo/Csg07l4zXUmzSrgKc8qZQ8Ln ue0iR5sw5+Qyz+xliNsiOqOhtL72wzqXHTJCHsqnd30KbJAyUUR24bTfPOUxCIztgXaO NcSw== 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=nJE0Ov249gPUdtT6ZeB+lf9+Z+9T/yJFkeTd4I25VJs=; b=HnIDbznh9Ba8RYWwOuM0RIo2zWKQUfB7K94wDFhw2mILTtjv7gBpRXSCrsAqkg66uv GSnJR9lSuJ0v+aNgtRF3sfVpNckHJljxL+otd7fKSY3ONMtTGC5pvTfGv/thU65dDpeu 3vzvyoqN8W4Wm8/xCwx82dTp2H5iwAPdWcdjFQdqiR38ukT9to3AmfzMXBDm5OTDKgSs E2LW7NQ6ql1YBzL49GKj8+EYAbkjtL2pS4QRYDZ+r6jUKvo6Fl1kkigDzRYIIAXjYcvY 8SkogAvk2oCxGOdnRr2MmF8hxlAuatyKZbhJFgOc+bA6uzDY6e7UtDvI2clwKC8s5aLH szIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=i7dwSeJI; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <devicetree-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si2551315eja.255.2021.02.17.17.39.38; Wed, 17 Feb 2021 17:39:38 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=i7dwSeJI; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbhBRBjc (ORCPT <rfc822;semen.protsenko@linaro.org> + 6 others); Wed, 17 Feb 2021 20:39:32 -0500 Received: from mail-eopbgr80057.outbound.protection.outlook.com ([40.107.8.57]:29216 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230241AbhBRBjQ (ORCPT <rfc822;devicetree@vger.kernel.org>); Wed, 17 Feb 2021 20:39:16 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cQEotOXMrUKibs6kRoleXteYhnU7sT/APaFS/KirzgTAjEaBknEqqHgrcmspB+LsdUg5JeXWw9Mgk14uGWlBWrnmReZQEoYcqPv1mUbL2mKfHPQwsL1BUWBFuIxHbOqxC2+fPX2zkyCxKRu9l5MUNK8AotIQoq10u5rUZBtSvWQ4E7qIcN1rOqMQnScUr2LVUx+dLSH2oQi1hXPOd+xaxyAHGSFFgGS1ZA5Ew3a6Zi5QESVb6jPP8etv0caXvXciG8RbAhkO8OApWGWBGtfYiRJeWEdDRdVN8i1mpjHF6tSS/T/gIMSa0QZHUmnKVHzGa6iUJ/HvucGhpyPDVHNw5w== 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=nJE0Ov249gPUdtT6ZeB+lf9+Z+9T/yJFkeTd4I25VJs=; b=ClUi9OuDwq8GWGTYYF3uc1wmMvZKxtmduZaP1MzzmvmYLS/fMpEvlh6Gru1lip04qGJV6QNzmjuTAvMjbgo/PrGWy12nX4XE5B0vP7G97MU8jtfd8J+ViY6guT1JvwabNCkgy1TUTU8Naqci/ZsQs8YOJ8anE67P+ZhtFMqYBcVndoi5LH5simYiGi0oufFLW8TW3oOwJhG+Qkn5HaxVQebAvnSqFcLwv6Ylc3XD2GMN8Eza6d5QNcHJr82I9Hwi2alczm0sjPohXFj/lHgdGwZ+R1NfpH6fhFdwJjX7i3g+QxjIGqIwd/SKG1TTrPTsOrCAUwTZ500DrC9xELG58Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nJE0Ov249gPUdtT6ZeB+lf9+Z+9T/yJFkeTd4I25VJs=; b=i7dwSeJI6Qzs6CjSOe3pVqyfp+RfgU5uoo9eGHL1CAVv3cBWHJZ0mmdG10vYYsxEA0AW/75YUrV5ChjNpX8AK+OPo/DDnxiR6B0LNim/ODaPaiMPuO9WmHdFgX9nuzI0fjex4mN5di03Ofu+V9QkKj5XZ2TqKjeJPAU8e1CUv7U= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none; wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBAPR04MB7285.eurprd04.prod.outlook.com (2603:10a6:10:1ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.28; Thu, 18 Feb 2021 01:37:28 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3846.043; Thu, 18 Feb 2021 01:37:28 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, paul@crapouillou.net, matthias.bgg@gmail.com, agross@kernel.org, patrice.chotard@st.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V12 06/10] remoteproc: imx_rproc: use devm_ioremap Date: Thu, 18 Feb 2021 09:24:56 +0800 Message-Id: <1613611500-12414-7-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> References: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 01:37:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 63b2a4ee-1f12-4057-186e-08d8d3adc049 X-MS-TrafficTypeDiagnostic: DBAPR04MB7285: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBAPR04MB728559ECB1CCF72C81B57188C9859@DBAPR04MB7285.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:849; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n4kSpHPKmYI4adj5fXzefG/q0LuCmTM7Aw0cA+cJWHTBh2lRcF4w0rdy89X8VAGVC7bVc+GlYqDIIBrSIxmEuSUXJxsvHV+BKTDVLQt7mpErz5Nve6gfGe6jKd1gLFITao0fBLjHScV6Zg++fKsZwgiFv+akOXIw+3SwlQPDWf++tVZK25Oho3zDQgqk54+ucZReuWTtGeE6K03lkenvO7efNoAsq7+27otsgCOrQHh9TqY5nGfYfKHy+hlW9ZmeQ/8VBSfHzqHaAPJNdyPsaK2tFjh0JZxlzzRchYTOZOwT4rAJ89GRxKFuBlBDvpDRLe9TySwmt8+7Q8ExcGSgx8XKVMALRJbgmhgqGycR6y+1orJMi7EROXPxF1kyfe/3Chl0BtaOyfB6bXMzwSiyzLlAGU7qoc4maPcJ2oImQonDMBUJdhGpYJOYml8qCJJDi757a33s0YK9aixwAOciABQQU9ZDGpb2MYmMtalzEBA+XqN+8ad0MeXpjZB/UHKh06v+0PpZ+JNsgB6Dh0zLVMNvJJ5+20aTpmpl3iuzCC5TblbUK8esIfHEmijMi2IlP8JF99C3EjVhI8x2Khum7g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(366004)(396003)(39860400002)(346002)(6512007)(9686003)(16526019)(186003)(26005)(5660300002)(83380400001)(6506007)(69590400012)(66946007)(66556008)(2906002)(52116002)(7416002)(316002)(66476007)(8676002)(2616005)(956004)(6486002)(6666004)(86362001)(478600001)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: UVT/Mb7g6ZtKYMCpfXgfj9kICKHa/4w/RPbOP2p3zcKQhXMgvdOS1DzW6KACg+dQa9VQTuJUuNQuTBn/8DGyJEM/kmVg+WTyTcE5GimM3jMxvpsHtwT50El9CukidozAtgsLKEjWBrs+D/aby6APYaHec7ZbX+aaxWweJLnEuVKvsGYtln1B6wXrhHXR7Hu+48bOPqqyfcQLXsqGtr2veEeMPHTOIHVwberJvPtf26uT4dM2CqoS+WaVKHk563VYhRwoCBlzLUzHO37s+Tb86TizFa2AWuHFYCxMoSR6F8M1+/7xGFF5jzYJzyGHTJdpnlbAZ+sdoUOcmmN93b4b/fzxvxg39mqEu+eCvBQj6fJ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enant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 01:37:28.5022 (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: qHke0r1XmQNEF6cHEQY2XaQ4sFA0raj8/8YVm1W40zUUDPggYngIPIiQzSSw3I9yjjXR1qppR9udg57IEQaFbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7285 Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
remoteproc: imx_rproc: support iMX8MQ/M
|
expand
|
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 2a093cea4997..47fc1d06be6a 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -296,7 +296,8 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, if (b >= IMX7D_RPROC_MEM_MAX) break; - priv->mem[b].cpu_addr = devm_ioremap_resource(&pdev->dev, &res); + /* Not use resource version, because we might share region */ + priv->mem[b].cpu_addr = devm_ioremap(&pdev->dev, res.start, resource_size(&res)); if (IS_ERR(priv->mem[b].cpu_addr)) { dev_err(dev, "failed to remap %pr\n", &res); err = PTR_ERR(priv->mem[b].cpu_addr);