Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2077513pxu; Sun, 6 Dec 2020 18:14:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNbmw7Ui2fnFTRl7VCD/Vky9VcEZZQuATgZ+ylPDGX+nH+r+fYP3MZ3zHU7r8ivrZhjCri X-Received: by 2002:aa7:c603:: with SMTP id h3mr18108174edq.254.1607307250435; Sun, 06 Dec 2020 18:14:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607307250; cv=pass; d=google.com; s=arc-20160816; b=p+u7FeLYQxRnAPq8LdXlZtr12kSAUe1s0PrMNvx9/hlpXqN/fQ0HHeYYOUHCvLqQ5a kS2PYvz47YrUYnT0OVOm9qtwMQfcV00GLZOzIOoU2w1fya1lmtTV5lj/L3bZVXJM1/tK KyN+vKu7nd9aaV7JCYDkovLc+jJ12D78AREr0qqavKGNuKCwxkFfMWHWFrQvXGu37pYC I2R2K4hYRmrIBAaxNPFfCmeCCsS4aabx1lnnQ1phguml7kG5zvk3a0ujYhq01TxLw5DU sTv/RJAQswJV/zpC2+DkQ/HaOVkV2Im+rPIN1cVLk0Cm+uhIDFNJeFUUtPHZcch2fSVf fdyQ== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=qn5reLNkcxH9UO5QazdUIvWonJMsFhLp9snIDT5UQqc=; b=Nnf9EDNRoaZxK8nET/droxNWZr/p8j9I/nYpsFSYOtFrl9y4OpKG92tsYP1wo1v7TE zdJWrUp5C1Dg6Wm6Pr+a6ctIJV6fFgwBZ36alsPfalVw3Q/Od5CTq67iDbqRsODQLsiN LeUxJZ8tttL18+V1jD/4FH8fgaYu9r+tOU+LA5bBPQZvZ/PsgyvAzAns+Mu5swms/Jca kIjXN7fYFZHu89BWgBL71uRpzPD2PFyS0oGQk+B5ib1GZPbVmSO+So4l8eH4rJ57awS3 FszWzPZM1sgnJkoHsWxx8M40s2gtavIc5t8dQN2hWNDWbgkVruXmqKQ9MphcVcqEPVOW j8+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Oqt1L3IH; 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 a18si5752944ejb.180.2020.12.06.18.13.48; Sun, 06 Dec 2020 18:14:10 -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=Oqt1L3IH; 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 S1728727AbgLGCJN (ORCPT + 99 others); Sun, 6 Dec 2020 21:09:13 -0500 Received: from mail-eopbgr140040.outbound.protection.outlook.com ([40.107.14.40]:35906 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726400AbgLGCJM (ORCPT ); Sun, 6 Dec 2020 21:09:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VomkXUIcwJGHCAO1Ovc4eyfrGMZX7NDr7ThTalCex5cj8e4owCBd/OvFudSTYL6tfs26abLyifeEx2QfkcC9BvAZXBbUyYAxfSKtiUGU4yxdRSFCYYb5ANyimIaHu3Klzs2Z/r7dQIXT8AsgRlMaP1eDiAW4e0rkeLPHtPB3opPVQGpCQhwCmEU8u/Keoz2P4EcCmH76sRdWpmov5mavRmcRzhtwhv7lSULpPUhTOe3n7poW8PWoTDbX1ivIfzxiHJk9K+s0RYBlZn7f2Vv1z0BwUSMZtp09sbdjNXPGuVO3XKt8nnv9TlRD+Tv5oM2D1P2P+fv5u9ethw2uRMqu1A== 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=qn5reLNkcxH9UO5QazdUIvWonJMsFhLp9snIDT5UQqc=; b=Gjmnr1PehZypzsisCey96wyXE4vNqkl5JYOizJR6MDeY1hMqFA7Sjt3axwPfaeJTmpigs2OovHI5G5l2uHvyxw3TbzzxKH7ZVtd32Vid3aP/y6MSt1ZWoGgVg3vXXsVrtoUDcwdx7WbbGw2RxdxsY8xbg9ZWHYiz6QshWtoqemCX8oxam2VH6qcpLbwznmXHOUnTNAn1AH8JD70L+6sTwO9W2B0o7hH/GGx2AgRH+ZWa+g8zPr7eqylLEJrFO1WAlhsRZSBjrn14RyjL6S3p3muPmVhz+drsDC/6Gs0bqxuvhu7uALTskOoV/axqgM+tUj5wJTEPAmp6bRVlgScVKA== 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=qn5reLNkcxH9UO5QazdUIvWonJMsFhLp9snIDT5UQqc=; b=Oqt1L3IHmtTTiLLuno2vO2kqLFu78EudTBtCu+uk4W7l2txn1eZA8Yt9VpPG35nQ8ZcsKLBoiB6NBt4xroa9Jw6uhZHlQly15smCxBMyGEwRpgLx/5ajHYkXDw3XturSN2zgy3XcKNH4zuWh5l/07fqy8gXnkYRFCfondcKA9QM= Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4633.eurprd04.prod.outlook.com (2603:10a6:5:36::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.31; Mon, 7 Dec 2020 02:08:29 +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.3632.018; Mon, 7 Dec 2020 02:08:29 +0000 From: Peng Fan To: Bjorn Andersson , "Peng Fan (OSS)" CC: "ohad@wizery.com" , "mathieu.poirier@linaro.org" , "o.rempel@pengutronix.de" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "linux-remoteproc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Richard Zhu Subject: RE: [PATCH V3 3/7] remoteproc: imx_rproc: correct err message Thread-Topic: [PATCH V3 3/7] remoteproc: imx_rproc: correct err message Thread-Index: AQHWygzmKuzGPnaAGEqtlRtv96WXwannpliAgANBImA= Date: Mon, 7 Dec 2020 02:08:29 +0000 Message-ID: References: <20201204074036.23870-1-peng.fan@oss.nxp.com> <20201204074036.23870-4-peng.fan@oss.nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a9d187d0-c581-46b5-76bd-08d89a54fd85 x-ms-traffictypediagnostic: DB7PR04MB4633: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rQEbK1vSC+tUvK/l5/Gnjl+Nh8RThojclZFNHb4k0WMsYj6SqG6N9uenivZ1lgYcPKch1ICFzzitbQIIMUa4At+U6XEt6qUq/z0/DwIow679RiWfjwMRoUKLjBlEQi8Qe82nXJTFDo/gk8wXNEjNft9XtCdcQH4SuunMsaqQjoLPb21pr+DvMWFwMDs5YJL7YlzXB/7gIZGAXp4MqZjJvMxaxGlhi/4gH+NWYrpVypnZce1ztitCW6paoeYGVxCBpMp2XXD3y78rlXmFGD3MoVuuQ/GuLqXCZuQp/r5Y8waYVscAghV3ezuTRoVRZi2NqJsbJ3rgzuhAtx4n3mL74Q== 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)(396003)(376002)(346002)(366004)(136003)(64756008)(4326008)(66556008)(71200400001)(76116006)(66946007)(86362001)(15650500001)(8936002)(478600001)(55016002)(26005)(66476007)(83380400001)(52536014)(9686003)(5660300002)(2906002)(6506007)(7696005)(186003)(7416002)(110136005)(54906003)(33656002)(66446008)(8676002)(316002)(44832011);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?cDCUMBslR14XpLGT2g0EAY4riKU3hXrPF3Giw6JRMymSd6VQoSWE6rjThEcI?= =?us-ascii?Q?9lOVr/0HbH87KUOloHCXMs1gpAY+p9zFQ0B6ZNSE0rO6Q5BdLLm8tznfUPjs?= =?us-ascii?Q?+9kPnuBJJVBY8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charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9d187d0-c581-46b5-76bd-08d89a54fd85 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2020 02:08:29.3598 (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: vE38EeJPHfeEzL+jmGaNd+x0+j3cMrx1IoLERFIiqQcNFYfxHcVsIob0QsGgLvK6J5YqZahjATioF7OEKjQlsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4633 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH V3 3/7] remoteproc: imx_rproc: correct err message >=20 > On Fri 04 Dec 01:40 CST 2020, Peng Fan (OSS) wrote: >=20 > > From: Peng Fan > > > > It is using devm_ioremap, so not devm_ioremap_resource. Correct the > > error message and print out sa/size. > > > > Acked-by: Richard Zhu > > Reviewed-by: Mathieu Poirier > > Signed-off-by: Peng Fan > > --- > > drivers/remoteproc/imx_rproc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/remoteproc/imx_rproc.c > > b/drivers/remoteproc/imx_rproc.c index d1abb253b499..aa5fbd0c7768 > > 100644 > > --- a/drivers/remoteproc/imx_rproc.c > > +++ b/drivers/remoteproc/imx_rproc.c > > @@ -270,7 +270,7 @@ static int imx_rproc_addr_init(struct imx_rproc > *priv, > > priv->mem[b].cpu_addr =3D 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, "devm_ioremap failed\n"); >=20 > I would prefer if this was expanded to a proper sentence, and I really li= ke the > second part of the commit message to be included in the change. > So something like: >=20 > dev_err(dev, "failed to remap %#x bytes from %#x\n", > att->size, att->sa); >=20 >=20 > And similarly below if mapping a memory-region fails. ok, fix in v4. Thanks, Peng. >=20 > Thanks, > Bjorn >=20 > > return -ENOMEM; > > } > > priv->mem[b].sys_addr =3D att->sa; > > -- > > 2.28.0 > >