Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp706076pxa; Tue, 11 Aug 2020 12:57:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxnBoK2/FCd1B4wK5sSFWjvo2EonX+tLGkmB0bY0321sHEsTGaaAf81tAwMVyevTS9FOQc X-Received: by 2002:a17:906:7d90:: with SMTP id v16mr27585700ejo.27.1597175843472; Tue, 11 Aug 2020 12:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597175843; cv=none; d=google.com; s=arc-20160816; b=Q0zUeVhzvQysAK8Tk62qp/ye16jepfzNxAdSrlQ/Ut0qIXTPEfgFesmwfpPYDSU8q/ R3Aut9qJvFfQOUXBY0iVnk9u9krrCGB7x8i4TQiP4t2Acv5GYvx/oxJJtLdneSa5SR+O PCTw0/s5Ic/1AN4Uwz8R0esXYW2s/mVhnB04/V4PKO+q0sLhxb1MGR/YQ1h5ThHXatFi jxB8sdkabdlrnLPyzOCHzf7IYUJbUL6yixQcLCnqg6v0FC7pcMLJzysPDdSgmG4IxY1O KtXfJv+FEozV6Gs1VD9C+NPz8gYgzc1hE4LCiPLjYkaoZiOxSYexSjdoMCu1bvmQbR6a Xi2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jSpZyl6zszveRQTb+X3U9qCb6qt2a47wW3ClpVmbJd4=; b=vX89+SJPUdPkaRmTUmbWD7Oi6oBXRRaIlKUE353TpwVuxmH3Yxw9fyqhGFSBymSeR2 I/csfQvRMjCQLS+IJmvX3ztZFIxtcc/6FzBZ7QrEy1kmFmG5FBqWuL3L/yk7ySjvflMt 8L1t67rrkudsssINfDjr0opPGKk2r2ck05PQkXOH80gJR9UiEihytkZ4BJszbj0KM+0U ZxAJ+ObcCPBQ7ynG7f/AsrAEUxNYuwfvqMiLr51TksJZJC9bClBd7hJAoakYhq5BKOAV FHaedZTXktd5wz78I7qqsJkZna6Lv3wVeTlQv3nhb5WvCbDQIwzDTyUOpUPnHPCEJCeb 1ywA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qp530flH; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g11si13269292edr.322.2020.08.11.12.56.59; Tue, 11 Aug 2020 12:57:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Qp530flH; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbgHKT42 (ORCPT + 99 others); Tue, 11 Aug 2020 15:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbgHKT41 (ORCPT ); Tue, 11 Aug 2020 15:56:27 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBFA1C06174A for ; Tue, 11 Aug 2020 12:56:27 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id z20so39518plo.6 for ; Tue, 11 Aug 2020 12:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jSpZyl6zszveRQTb+X3U9qCb6qt2a47wW3ClpVmbJd4=; b=Qp530flHFX5VujI6zk3JRpc5NHS0opLYWMJdFxardQIeNKy0kHusBV2UjudiK3A/4d nhhJ7oBQKZ6dPIgZTqyjIwb2PYjNxf/8dXO0LCpeQh/2qJxRxpIku/gGymanLHhOJsy1 esS5XOfi4eJ93Bw3t3emRXrWxZh6+lZj0+EUeHdRJovtGI421LpFAVG73OAU8Wm38dwF Yvs2LPr7qeBJjl8N6xCV/LmhXVZeZPyhvIcIlVNVdRTRIYsjAprLT0GpUX5pJwMrZyvW MwElCRoigXVExeMWpHlCirPTR10nssTPHq+fhb4VqNW4sctT7PS2MvSBfBnd4wuC4mlz XWrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jSpZyl6zszveRQTb+X3U9qCb6qt2a47wW3ClpVmbJd4=; b=cfduEFrzPZHmdkuEW8/hlrbAiXTTrTzxsw31mCDV+mgCTo5cWtLTE6yC9QEvE+J1cM kUYUvkSKLFhJrzF2Ves08L/igsdRjquLeqUhQFq06b2aLgcNfJq3TFc1P2RNtlk0eM/+ QG9vYYKG1GstYDk0QOf03ExZ9Xp49KOQdvqkqWYJI6Ubjohr69//9uK/TEO50PkJEDR6 5KlahVxybMY4Zdyrlvk8v3U6PYcY1rJI0BP3inlYIzckzCGbZtM/qU6+Ulu2iy/aMbzY yOF7e6A//pzE0M1ZmnW8Gqq/F04t/Ad1oip2OQ6eaF8BFtm1pHK/sD3Ol00Cw/jqa1a2 9B8w== X-Gm-Message-State: AOAM532jWTEC+LrwbiwhCTYCE34pzyyODxMPtjTwHy6NP6cr6gjETVJ4 rxSmK7QGLn+Sq52x9/Zn+pjfJg== X-Received: by 2002:a17:90a:9f44:: with SMTP id q4mr2826417pjv.66.1597175787041; Tue, 11 Aug 2020 12:56:27 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id h24sm21487728pgi.85.2020.08.11.12.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2020 12:56:26 -0700 (PDT) Date: Tue, 11 Aug 2020 13:56:24 -0600 From: Mathieu Poirier To: Peng Fan Cc: bjorn.andersson@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH 02/10] remoteproc: imx_rproc: correct err message Message-ID: <20200811195624.GA3370567@xps15> References: <20200724080813.24884-1-peng.fan@nxp.com> <20200724080813.24884-3-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200724080813.24884-3-peng.fan@nxp.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2020 at 04:08:05PM +0800, Peng Fan wrote: > It is using devm_ioremap, so not devm_ioremap_resource. Correct > the error message and print out sa/size. > > 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 8957ed271d20..3b3904ebac75 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, "devm_ioremap sa:0x%x size:0x%x failed\n", att->sa, att->size); I'm good with fixing the devm_ioremap part but please remove the address and size. Printing them provides little value because they come from the device configuration area that is private to the driver. That way we don't expose system information involuntarily. With that: Reviewed-by: Mathieu Poirier > return -ENOMEM; > } > priv->mem[b].sys_addr = att->sa; > -- > 2.16.4 >