From patchwork Tue Jul 30 09:37:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 170050 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp2408298ile; Tue, 30 Jul 2019 02:37:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWmG0nryokL3IgZARkecluHUdOBKosI5+96fPFuwQEBrlbNpfF7c+LfTBeMsWk60I4hTd9 X-Received: by 2002:a17:902:d917:: with SMTP id c23mr114381597plz.248.1564479465709; Tue, 30 Jul 2019 02:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564479465; cv=none; d=google.com; s=arc-20160816; b=Ma+FQfg051lQxtO/FW+hMilPVP9P5WiCcDTmGuDDLcJfzDN3d2z0YlEbPbobeXKjLm kxLYqAUKNsFLyh8u6pDaMcrvOeuFGa/AW+r3r+AzAuJcfaaWvCzJOeUTyr9DywlHLepF 8QVmGSfbIIowAGz0tLzqFKtrundwSx8WMhX2yD31m2zKiEp9U5zC4sMzIkfsiD+vhF1W x4ezm3HmOH/J1C0qQDX+PgV0I+ouRRiuY0jw7eYPu6eV2GL69vBJBcoDgJYwVRyLFBVU G6iUrl0hOmpdV9hby+yDkwW6dqp75lOXnyPqW+eNYI4cS50p2nkuloN1hlxsigw+FMKe 2OMQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=a1bVt92ybCEh4+v2zktflpFBeCvR3VCalI6BxRlNOyU=; b=r/yVwVZ7UVY+gN28FZvaLbFs3GAKksLcG7rVRk8bDcNTE+rpLNpBetkOG5/c3rEVI3 ltItYbjQCAkAMQDH3mAXQ5CdSx4tPCFD9jaFrIvdRnLJ7sjF7Jwjaq2BuPnwTwo+HWJU bjd0D3+APuMX8hzQD9ctjtfqyNzJVaLuWD8aRcLJd9bgTPFvSTQ5yhEan0FwhBC1nFXX y2SrKGVvE5HL0GaCJt2hbiSs3F79wn29YaIvKeE1ESiiF/Q6kdoDxUChPUUXtCBJisqM 14byuR1EI7GNobh1JpY+xcJKLbE6xg7SGjXpklhfvdY/n7DIW0HPZ8rDPkoA9vFDL35M Ddmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be3si27524430plb.383.2019.07.30.02.37.45; Tue, 30 Jul 2019 02:37:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731705AbfG3Jho (ORCPT + 29 others); Tue, 30 Jul 2019 05:37:44 -0400 Received: from foss.arm.com ([217.140.110.172]:58224 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728525AbfG3Jho (ORCPT ); Tue, 30 Jul 2019 05:37:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DC528344; Tue, 30 Jul 2019 02:37:42 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 35E163F575; Tue, 30 Jul 2019 02:37:42 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, Suzuki K Poulose Subject: [PATCH 2/5] [UPDATED] coresight: Convert pr_warn to dev_warn for obsolete bindings Date: Tue, 30 Jul 2019 10:37:33 +0100 Message-Id: <20190730093733.31861-1-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190729170035.GB26214@xps15> References: <20190729170035.GB26214@xps15> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We warn the users of obsolete bindings in the DT for coresight replicator and funnel drivers. However we use pr_warn_once() which doesn't give a clue about which device it is bound to. Let us use dev_warn_once() to give the context. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since previous version: - Update replicator driver too. --- drivers/hwtracing/coresight/coresight-funnel.c | 2 +- drivers/hwtracing/coresight/coresight-replicator.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c index fa97cb9ab4f9..84ca30f4e5ec 100644 --- a/drivers/hwtracing/coresight/coresight-funnel.c +++ b/drivers/hwtracing/coresight/coresight-funnel.c @@ -192,7 +192,7 @@ static int funnel_probe(struct device *dev, struct resource *res) if (is_of_node(dev_fwnode(dev)) && of_device_is_compatible(dev->of_node, "arm,coresight-funnel")) - pr_warn_once("Uses OBSOLETE CoreSight funnel binding\n"); + dev_warn_once(dev, "Uses OBSOLETE CoreSight funnel binding\n"); desc.name = coresight_alloc_device_name(&funnel_devs, dev); if (!desc.name) diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index b7d6d59d56db..b29ba640eb25 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c @@ -184,7 +184,8 @@ static int replicator_probe(struct device *dev, struct resource *res) if (is_of_node(dev_fwnode(dev)) && of_device_is_compatible(dev->of_node, "arm,coresight-replicator")) - pr_warn_once("Uses OBSOLETE CoreSight replicator binding\n"); + dev_warn_once(dev, + "Uses OBSOLETE CoreSight replicator binding\n"); desc.name = coresight_alloc_device_name(&replicator_devs, dev); if (!desc.name)