Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9504246pxu; Mon, 28 Dec 2020 19:05:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKXjec+YJAPSqtEw858OcNS65xKv4NlHI8/f41o2OT5DV4Yrgfiapgf46EHS6QiPd1Jrx0 X-Received: by 2002:a50:b282:: with SMTP id p2mr46184264edd.210.1609211111751; Mon, 28 Dec 2020 19:05:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609211111; cv=pass; d=google.com; s=arc-20160816; b=bvFD24lo9hKC52pT8rs4xvSE+8m/Z+NRHs6yoDrC+t/0qQPdUu7g8rZL+32QMvUVVw Z2GyINqBUO/vKg9pGNY7fBTwoECPmElbFSkfwWf+e9EWkwnFfrJ2kxw3DnYrLMruT1P2 ysaeRqcC3DeP13B/k6EnWgK7gHGgXhj+KyJFlWXGVbh083sa8Qvy8KRM9Cgw7o5a4uCp nn6mRawar6UtpkFZVrXE5j1v7bUkWf/GQpITAO3TF/fJcvNvP/scImDuRRgkCr4dXFW3 UAmdnqER2onb/1LCZcotwZ2/njAfxGRSy3xW2ZziwAgNfCUHIpUQ3fqVkeaN74CKQZz1 ZE8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0Y7nvuV6YmxTo/n53V3OedPl/HPso53UW1BxgRUtTA8=; b=AZTPUcyWOsSLxnpbj6k31oE2QuzyMieFj4H6w1ksOrEVFgRQsyNLc00Hp2e6cxqIZL YdimCq1qtDS2UoEq2iEIgx/bNmNbLrNxCNoqhrFBymCvqmUANePfIOGygVFDYZsfiu7C jjvm2cLlRreIjHIfZygMCqVAdBunmlCn8Lmz7JGeZABoMsGdLeaA05MDaPAgHTEkNVPi DcsJcUIPAsR8S7CTObIft03/arJ2lGMbOZywbVxlLn2rECJxwA7u1UilqgS2RsagccLP 7ZDC3Xq0YVw6H444BlBEXowdV7DFFD4s8PpgkX2Stx0ribDknQnVdotZFmPbVgHu2vWc piSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gPQo7vds; 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 c12si20835893eja.450.2020.12.28.19.04.49; Mon, 28 Dec 2020 19:05:11 -0800 (PST) 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=gPQo7vds; 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 S1727396AbgL2DDb (ORCPT + 99 others); Mon, 28 Dec 2020 22:03:31 -0500 Received: from mail-eopbgr50055.outbound.protection.outlook.com ([40.107.5.55]:14917 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726429AbgL2DDa (ORCPT ); Mon, 28 Dec 2020 22:03:30 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S+17Oj5lBe95q3W90/dvresZVRZtIf2jAgqUOqEjLP+PRs73r2ufuqWW4+PYacyM9dfA3wjGRXMD2kWBhgcdaYG9baOeHFb1o9DufFtrQhMRqEHlIPbAUvjYEGXRFDwPGXd0NBv2nKgXec8EZzKHDUQmAxolxracBszjykeBRXtrZfvj1Rgga0sm3lC2edc/ezhuPyG03oHxgngVjDoJFroZegRzP1qpOBcscr5ZywQLja0MVk8AA9K82g4WCoCEIZqmF/jApBvr3VRSFcDcsb150/agy1o2dlf1sZzMHCEqlCR5m9I/VfbJFHb/yrIJM0tap2eeDnReU5h+1WH6HA== 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=0Y7nvuV6YmxTo/n53V3OedPl/HPso53UW1BxgRUtTA8=; b=OCWQVYyXgQ6MEmrY7XhUyqblqOOiAEdulqQA/Jx8yaCveqXtH8aH0NgGUTMX2yBZ5oOHim57b/JmeHd9Y5YHYnSfmLmoj1NUBw/I1iRw2PA2D6Fo7giH+dZ3rnwzDJI9ettxjIqJW/NzUJOieGYWwTJqcLjw48byukKffTH9YQ9qvq9SfNDRPAZenHUei9uneSk9tlDwC33FLrBN0lW7LUNhOoRLfWNesl6MvqlRbrxwS3PLQTzD1M9E1BtZUtjfDkYVVXsTvWMX20uBGDP6yn3X+Bhng0u8Svk/1ww4PP2C1ZCdjd0BJi0Pdcf3qeMZvz0DF/OomdSOhog+XAlCow== 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=0Y7nvuV6YmxTo/n53V3OedPl/HPso53UW1BxgRUtTA8=; b=gPQo7vdsO5AuxE3//qQE6UI8p6VK4WfVVbt/IWTpWsm4mVD5l56jsEIOyM5MORJguoZYta3ELPLuFmquwbNDNrZy7rKl6KuZifXyAw0X6BQlZXKIeP+ng2klvbc646V2AKv60Jv0XMpJnLFTwUyyZy4o5sy3ho63Rd6lAFHyJqw= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB8PR04MB7178.eurprd04.prod.outlook.com (2603:10a6:10:12e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27; Tue, 29 Dec 2020 03:02:02 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3700.031; Tue, 29 Dec 2020 03:02:02 +0000 From: peng.fan@nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.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 Subject: [PATCH V5 3/8] remoteproc: imx_rproc: correct err message Date: Tue, 29 Dec 2020 11:30:14 +0800 Message-Id: <20201229033019.25899-4-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201229033019.25899-1-peng.fan@nxp.com> References: <20201229033019.25899-1-peng.fan@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0178.apcprd06.prod.outlook.com (2603:1096:1:1e::32) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR06CA0178.apcprd06.prod.outlook.com (2603:1096:1:1e::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Tue, 29 Dec 2020 03:01:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cff33e03-6a0a-4d3c-e2dc-08d8aba61db3 X-MS-TrafficTypeDiagnostic: DB8PR04MB7178: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:989; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ak5S8N6jG9ignrr83CQihDxyonOV48JY+ynpMmiqXiGVsJ3F5AYEd3SiyDDcBW+kP+HYeO0f7kXHoN1vfLP7axDQuUyKgfQsqwW5CNpIBE3Gpi0H0adyr+9hPUymwftwBjBEbVoNoDnJ8AHkZAQMaNBTJx47eECdzLdq6cwteO8w7uyIzBgXRolwe1VdvK1YAFNBwk5qnmSOz02OuNF0zTVr1xPNWQrpcE14x4y3LZP3qp60Fo54nVykUb6I1Pk60joOZ+hWSFV7l+tpc4BMaZKxvvfhzMDtSjJ5fIuW4nvSl5ZAXDDiKzf0CF7m40LKOOXve7/p0nWgBrN7mloB2t7mZj6Z0QipF19LSAe1Yneez1g+OcUIocaBpMkTTc4fznMtSknBFgrkoUge2IvjOQ== 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)(39860400002)(366004)(396003)(376002)(136003)(346002)(36756003)(66946007)(16526019)(9686003)(2906002)(7416002)(2616005)(15650500001)(86362001)(956004)(478600001)(83380400001)(8936002)(6666004)(52116002)(66476007)(5660300002)(66556008)(316002)(26005)(6486002)(1076003)(8676002)(186003)(4326008)(6512007)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?CK5og8gM6MtL0ZUd0Z1/2/g/RcXkgivrdRMlbKSjX8ikyxbH15Q1MtLW2/sv?= =?us-ascii?Q?9ZHK+75YwGikGbX4CssWyUUsYtlsoTPoxjtOjRrqmkm0kc+HPhZ6bS8oTYJJ?= =?us-ascii?Q?hHqJYjBJYIHYQshb3HpzoedygROG4z8FxWFtACpEiwjCdrMO+G8KkuiylS8j?= =?us-ascii?Q?PezuoVxp3NC2Cef/8l7jR9Wa+5CCVPfl+wf2yXkB6k4rbBwTuXE7LlA5ffM5?= =?us-ascii?Q?u8P3Qwr3iv4uPrkKDS8c1sHk9yJt25pgIzFeV/hSeLpm4A8xw19HZPuB67o4?= =?us-ascii?Q?kv9Qyh8ojzXImwhKMdw0sY1ZLqfP6psQ2SOBxw+Kfi8lWkw7yIuKioKwEAp8?= =?us-ascii?Q?MkHTn9zNr/QQSivogoyv0AguQDEgN9t6y6F0Fc81mLzbDJkv91naTDAcqBpN?= =?us-ascii?Q?q6zdNiS6/SKv8qE/DBc70g2yyYAZsa6Q6lpTDqMrqw8VfuBIQZcASZN0OkmW?= =?us-ascii?Q?0atUQYpU2W2hrKfAaMuR2APQiLNTxCU2G7p7Mln+SQH4c8sVBsIBXXTsfOFQ?= =?us-ascii?Q?WcbjR3aPes9kXRTGCzGfj1MoZO7Ni25BOup7GQvO/GwQpz8GQuIp9364sMHw?= =?us-ascii?Q?E5kBsFe//vut4rbnILEnKjiObP33hdrNwFQ6sPaVC+UGt4A930OitAn2jlNL?= =?us-ascii?Q?WDSIomEp71R0k91SoR6g9IeG5HlVWwNP5Gt+S2m3CJWPgHHABtOtIKY/oiGE?= =?us-ascii?Q?K9BlEMBRP1pLDL+Mh37jx2ulNqhg9WdLK3ymZ2qHpNuNeLYOmxO6lBUSJHA2?= =?us-ascii?Q?n/vDyaSEO2CwV2y5pEgw3uJ9/a9Bo93XvdnysWu+ljJgIYxom0uCDtxqC82F?= =?us-ascii?Q?Qycbsfyb5S6UIXYRXg4/k6JTmvw1pWb6PUcg2yKOdc0MPbGz3D8Myt1J1VIR?= =?us-ascii?Q?J+WDVQQT1E+JfBvug98zEoZvF4wf8IHG56Rzgohwab9brzVy6l4lx98ooDFc?= =?us-ascii?Q?ZL97m/gXm32pg+UgL+d5csMIycolVYy3cXzh2qVrVSVwe8f6uYPfPS9QsEX8?= =?us-ascii?Q?Ons0?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2020 03:02:02.3044 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: cff33e03-6a0a-4d3c-e2dc-08d8aba61db3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gcN11GKvU95JvagQYVZf5Du5paA9yqq0aU2WOvwyYIqk5nFM3Tblz/RxMlT5QxhQ4MFTPdtHwDvbDWrrdzPjtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7178 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 6603e00bb6f4..2a093cea4997 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -268,7 +268,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, priv->mem[b].cpu_addr = devm_ioremap(&pdev->dev, att->sa, att->size); if (!priv->mem[b].cpu_addr) { - dev_err(dev, "devm_ioremap_resource failed\n"); + dev_err(dev, "failed to remap %#x bytes from %#x\n", att->size, att->sa); return -ENOMEM; } priv->mem[b].sys_addr = att->sa; @@ -298,7 +298,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, priv->mem[b].cpu_addr = devm_ioremap_resource(&pdev->dev, &res); if (IS_ERR(priv->mem[b].cpu_addr)) { - dev_err(dev, "devm_ioremap_resource failed\n"); + dev_err(dev, "failed to remap %pr\n", &res); err = PTR_ERR(priv->mem[b].cpu_addr); return err; } -- 2.28.0