Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp63618pxk; Tue, 15 Sep 2020 17:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+jd65+XWc2s+PBER40/PbLS2dsFv4nC1PtkkM4cjy69eRVh+RwI+mySDSze9DRSrC0jE4 X-Received: by 2002:a17:906:4cc7:: with SMTP id q7mr23173571ejt.437.1600217785615; Tue, 15 Sep 2020 17:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600217785; cv=none; d=google.com; s=arc-20160816; b=yVTb9wgrclEYOhduiCs+2qPsz+brXBVx8JRmyCQnBPPmvORMJMGfYqupxcGPN7cp15 N/OOlOvWbce6fSQzm5XdjdhBwzK6sOBi2MJ+K7I2UwAfGkOsmYnUzKoMu0xAn4CTZLLD Df6iPFQVLgtQQ+SL0UYO0RhOPjrOl18qw/h3co/iJPlgf/Az0OJDDpPDaILnTb0oMaJW zsQ29O2Y3+WBAMfGJ3dGfpO5AaXIcTvWHcN1L+3jOtgVaF9ZcfAsGs0/VpHK/qX/3t8B x3M6jE1f2wi9dE0elyeDt8cZzqte2OrS7c2xuZwViGOQwerPv8au1lue+rLoI97w2a4N nJKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=RQsMdph5TWkiB/OAm5VzP4BU7+j9iIC7fVgWcyn6y08=; b=OHHLRVMdlRDiHrr3PZuinINXitdJnRaVYwgZ3zF9q2GFOxmfCVEi1NYCbydUlfDDZJ Oj+caW+pFV4PJMzXZefXbQ4qS6aLTFCi5Z5GoDwok8F5QD3z8l3X7l9fCEu61N+IDScb eNFzEZROiSefW7Z8lGwtES/pTy37Zks4j26oBXX0uSw1ueEVTnXpQxXHmdahsa61pzZM D5nYeXCW2d6sf6J6rYoHgWK5js69hN9ymOeBWCHy9LXmawIpzlpyrCExfpswOEV0y8u1 aU9/+Qs8czVUFodxMhJB98Cz9F86fiL8DrRRs6jYwdK+hOBpCzzGdVxO/4MwcEc4lmlO hwAw== ARC-Authentication-Results: i=1; mx.google.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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si8738839ejy.315.2020.09.15.17.56.03; Tue, 15 Sep 2020 17:56:25 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726480AbgIPAzb (ORCPT + 99 others); Tue, 15 Sep 2020 20:55:31 -0400 Received: from mail-ej1-f67.google.com ([209.85.218.67]:39147 "EHLO mail-ej1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbgIOLbW (ORCPT ); Tue, 15 Sep 2020 07:31:22 -0400 Received: by mail-ej1-f67.google.com with SMTP id p9so4503207ejf.6; Tue, 15 Sep 2020 04:29:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RQsMdph5TWkiB/OAm5VzP4BU7+j9iIC7fVgWcyn6y08=; b=f2nBeb1swZoSUqWk7IcZBdphX86IWW2HBx641EexHTgHutbEu1KE7GLuTyMD9Y+3IR +b0WzVIQ9jBbb5waRVq80LtjDT9qk1hthkWkAQBdnEGkn54sQDu8K37isP+2Oclmg+cY RrP6QtyJTvxVCZ0QbnoL3XmYN8TGr+ruolKmf6lE8rVZniAHD+b6C/TctrYT8+LLyJRH Lsw5E0kN/SX7vTHFNupRydm7fb1KahhiupmyDhztiS90Sx1FjcodHAX97XDKHpMBEWAu 7F1fa5L3OkSrAAGI2ToBYsDmClJ544VVnYKi4ch95QVP++pCDcQpNbLqAU3GmLD8O+Ks j63g== X-Gm-Message-State: AOAM531ljpjInuladTQyqLOAz21n/2xH+8qtkFUAQiZ1FM1Atvar8AR2 q8A3ogDWlrgvIJPnLNRadOg= X-Received: by 2002:a17:906:49cb:: with SMTP id w11mr7865688ejv.530.1600169379610; Tue, 15 Sep 2020 04:29:39 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id s30sm12024077edc.8.2020.09.15.04.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 04:29:38 -0700 (PDT) From: Ricardo Ribalda To: Mark Brown , Michal Simek , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Subject: [PATCH] spi: xilinx: Fix info message during probe Date: Tue, 15 Sep 2020 13:29:36 +0200 Message-Id: <20200915112936.320647-1-ribalda@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The info message was showing the mapped address of the device. To avoid security problems, all virtual addresses are converted to __ptrval__, so the message was useless/ugly: [ 2.304949] xilinx_spi b0010000.spi-flash: at 0xB0010000 mapped to 0x(____ptrval____), irq=37 Use %pR instead: [ 15.021354] xilinx_spi b0010000.spi-flash: at [mem 0xb0010000-0xb001ffff], irq=37 Signed-off-by: Ricardo Ribalda --- drivers/spi/spi-xilinx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index 8dd2bb99cb4d..523edfdf5dcd 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c @@ -491,8 +491,7 @@ static int xilinx_spi_probe(struct platform_device *pdev) goto put_master; } - dev_info(&pdev->dev, "at 0x%08llX mapped to 0x%p, irq=%d\n", - (unsigned long long)res->start, xspi->regs, xspi->irq); + dev_info(&pdev->dev, "at %pR, irq=%d\n", res, xspi->irq); if (pdata) { for (i = 0; i < pdata->num_devices; i++) -- 2.28.0