From patchwork Mon Feb 15 12:34:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12088167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F28CC433DB for ; Mon, 15 Feb 2021 12:48:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E724464DF4 for ; Mon, 15 Feb 2021 12:48:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E724464DF4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=anCFthcYs+LHEVo0dz7fXMkV1pMbhBwEOjDYFScguog=; b=rv1nXPg1UTFPFkpwJ+CL9HNYa TZtf2U99m9XnnEKlpCD72LYGHDd1nfANA4dcMp0OcWoywq1jYf/MkYyyNOdUpszEhBhk1hOt2ezAc tT+crdiQj0G76bQOGahHVvsMW8zY9g7TMbiVwqVVPQuIw0cd9/sI+qUVPdG57aC3rStfGSzVZB/h5 lzxgCHCaO2gz9IVhaXvalJHiVJaleSe9Lp+4Z/U4v4XMh88n+5OpYXIUd9jHTpH++m6tQjKjAdb6k 16zhnXBCOK5r0sO7E/2gsudYo4cBvf9l44TKknGaPYIF2QmtbPC/ZVxq5e6mtohi6wN7QyGCjbIE+ mm495CFVw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdHO-0003gI-NW; Mon, 15 Feb 2021 12:47:06 +0000 Received: from mail-eopbgr30074.outbound.protection.outlook.com ([40.107.3.74] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdHB-0003ZW-Eg for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 12:46:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=icR3NYMRVn6fRhl36xLXUaSJiNkMbNER7BKJuThPZpKbLfABpaPrqMsYQ4x9wRnSk4YgdQ99TTiLRkuOLEQuSVcPTMv4pNlhbRSO7q36x+SHaTgs9TbjzhTLLNuE0gFeX4QIbkV/+qQKMiEVKYB7YX1M0EKeq7WYneZuqogxnx47hoXhVPlZ47EIbIgd1bqUFlesATfxC7rqKJViqbI3faTzbk/9ce+CZ79qLTgbfAoGISY/RuPb+7uIbT42pJ5bPWQdmh4MZODStDcFqT5zJJCZp0GJT5pJWAKfLUeXetPvBFc9oHNhcZsci+d6QixXHWhBwk7+DqtEZra0keV7VQ== 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=EM9JIC+yeL3C9WIVZhyYz0R6U9vBvka5aiesdeAvSbw=; b=Lh1ieTqHFgxcztTTSbOQ93NvE4b1MFpkOvoAPU2Ja4aMfR5EOGgeBzgiGn+y9jiottWFRcAU55o3dEwVXm+3oiifdFBAN8kuQYJN9oTCWwepMojD9mThNIt9Ne8SCrrS7e+oSqi8Xt/oGhDMKeOT9zkqqcyHlORwgbjkxJNyNj71YcHMgYKpYy5vOPfJhaCdW1b6C77UCBfJiqaEhFCob9QgM9jpjtsZm6QHFfrqi/2FUq1lD9xqmV/M5pt7cquPYS327NYpjni/rLZTnxdCwNXXyG+FouOM5KMIWCJGBmqeCS/g6nitUsVsvt28Hadgy7D/9K/qG4apRFZ3mLWXEw== 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=EM9JIC+yeL3C9WIVZhyYz0R6U9vBvka5aiesdeAvSbw=; b=VmNEkzfSog2jIJXYcHF8u8HFfHwdNROidYfNMQoWnPhtmmSQKlc3GMA9H05EBtMxxfADixcI6007inw2PzvBFVui3XJDQIAcv3uT+ui3LpWg5JE2DjLIuHj5KzfJSH8QKofyJkn1Nu+Bz3gflo0hPx1JeeCfgDouKJcq8xuJFvc= 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 DB7PR04MB4091.eurprd04.prod.outlook.com (2603:10a6:5:1e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Mon, 15 Feb 2021 12:46:49 +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.027; Mon, 15 Feb 2021 12:46:49 +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 Subject: [PATCH V10 05/10] remoteproc: imx_rproc: correct err message Date: Mon, 15 Feb 2021 20:34:18 +0800 Message-Id: <1613392463-9676-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613392463-9676-1-git-send-email-peng.fan@oss.nxp.com> References: <1613392463-9676-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:3:2::29) 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 SG2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:3:2::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.12 via Frontend Transport; Mon, 15 Feb 2021 12:46:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7389bac4-83e4-4fe0-e6ea-08d8d1afc30f X-MS-TrafficTypeDiagnostic: DB7PR04MB4091: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True 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: dpKtsm65esLP+/NsU5zhJQo2hEevZdJbBz8Nqnh1PryIzxXT/z38s2dLXA00IRfTcQqbPqsQXiON21VYeXiLxr5YemUUKVcRECcAGHxzJxaUQlscODTRyHSqHl6A8k6epevxbN6sjnJZnse3HZget5I5xiuCi47gzmXmNUt9BVZtZyoB6NF1jgwPG8Mqaq4qxbVLMdHKkdP3DHamO2ijmiWNkTBoLipP/+8HF33pcSTQRiwakJbm6/crKi3RbaoVWyP+IO9Q/76erM1zWfAuP9WpYhTJ7X/jAyDdQzlvVp2crXs9UHi5hcaRtloj/6vvHHPtWdXXP0BqEWnVWuZ+KQfPEpmBsHzCBbflLlhzuR6t0WZ0kkbeflrD/m3s+7EppCfH+tTYiUJfgRuzEENlgnFeXqdM4HtsOjrYmCX7EHrM5+robussv1zBUYnj/OBjK5qMFE2V0uzxN+Q8B33fOsFdfVFf32zmKcTBrJS1Ys9K6TdSuXvbQ3Z++OZn5WcBuM8rRNDBDZ5tTo/SM8Ct9qz0qceXSqm0iWbaEFLu8GorTygTrRHlopF8YZdEFY8zEefUe+0MFqJ/1h3MMdZQ8g== 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)(376002)(346002)(39860400002)(396003)(366004)(136003)(26005)(6486002)(9686003)(478600001)(316002)(186003)(52116002)(6512007)(2906002)(16526019)(15650500001)(4326008)(6506007)(8936002)(2616005)(956004)(7416002)(86362001)(66476007)(66946007)(66556008)(69590400012)(5660300002)(6666004)(8676002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: T85DrJf+pR9AAi03ctyL0akzL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B4nxZf2O8LoxYnCTvt5vcqJCeTTyG446Fp4gxpcGz3FbHh8QZBOW/VKEAdJxW/yA3sTEejyHS9kBbDkDxmuJo62EVw/HJ3FKppIg8sXYupsWz2xB2FQCgFJUVmKok74RRfTMLegDP+eKHKw7vJ7WR1IYcHV5WOXSiR5NeR3uJSDyhGV44eU0EW5ZUZSnZkxFivI6P1lrcy1GeYK1sfK7xDmSrtcfh+Mrzvs89YoUa X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7389bac4-83e4-4fe0-e6ea-08d8d1afc30f X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2021 12:46:49.9194 (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: 1GvwxalZg9PNnKIVDTwrW/NJdOgxlkBwrmg3gjDDpxBc+ODwbvgBXW6XVGmYfPUI8SB/T/nXydbbZDG+DT/a7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4091 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_074653_584824_2537EABD X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , shawnguo@kernel.org, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, patrice.chotard@st.com, paul@crapouillou.net, agross@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, matthias.bgg@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Mathieu Poirier 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; }