From patchwork Thu May 2 16:54:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 163275 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp5963266ill; Thu, 2 May 2019 09:54:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZBC3HFTf/P/qwu7AEHhPaGXO+1kayULPMQLbyMBr9pNkpG17duZEM6x22YMnoqvXRbpr8 X-Received: by 2002:a17:902:6b:: with SMTP id 98mr4843064pla.271.1556816065302; Thu, 02 May 2019 09:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556816065; cv=none; d=google.com; s=arc-20160816; b=VxKDAjK7Q9E9x7mJjCZJ/3ZRjafPcE2zrH09kaADqFjvrK+dQeZ+GOyr437rc/nBzH JlWKS2aLCLAFjEn5T5QfXGIz/gC4SsuKWniZ8kEy+x86zVQHMuTF22Wq3g/MbNd/eVwk +wropSUK1Yw48IQt2E70QH+1tXH87aXX3J02+JYKCiUtXW5qtLUHFESGIb7MemuaHG3f fofXIhY03IF/cN2j8uGwZ2bDd3LJI1hIuhe/a6RrZBe5hfismzIPkrHKYjpdfMESysmq 3fUXfSpeEwo82kk6EktZrZZyHWVSR+Tz0D1cipUoNbo/nPcblaUy9L+kLoNZMs3z9cPg X7GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=vRavtCuEgDmIK+L0LjCzpchEvsYFUuSGMHsKbPl1OXo=; b=czXN5w50mSghbK/MgJOjGYz8oEo66V5+GWHAIGtff/TN8/XIfG2WSDaQmeFe50UUmY 0+BcP8hF9W6KXrQPqH8/qgtzGkHVCiYdofklyRqngR31qta9lQ0GJrG3zNxffLjvwJR0 PoaoqnEWktP9SSoAaeB1DXGBAyJfHL2Db1nQ8XC7NTIcYnQdmPzTpO2nSu0w70dpPW7d ijOn1nyaWSKfVqOTHLV+iLsvY9xSgLNwrbcyfr7Q6mFUVov2NJY4PndmasnjJrxM0hHB +30hwC9zhyDmjlPCf3P/TvlxxOvfDw4z04gwKmM0puf5iGcseT4lDNMxqzGSr1K2ixDC NOiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1iuQ8jp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si37262945pgp.158.2019.05.02.09.54.24; Thu, 02 May 2019 09:54:25 -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; dkim=pass header.i=@linaro.org header.s=google header.b=p1iuQ8jp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726781AbfEBQyO (ORCPT + 30 others); Thu, 2 May 2019 12:54:14 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45256 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726742AbfEBQyK (ORCPT ); Thu, 2 May 2019 12:54:10 -0400 Received: by mail-pg1-f195.google.com with SMTP id i21so1311104pgi.12 for ; Thu, 02 May 2019 09:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vRavtCuEgDmIK+L0LjCzpchEvsYFUuSGMHsKbPl1OXo=; b=p1iuQ8jp93efREIh6tYMi7eudLPjh6BqGeUJEt+25legIa8wXytBuW36/RYS3b9GRD zhPlnLD9gMJp4+rT1NG5f9R7MUbqdBxDKnkIXc/nYmYox4ISoh9TrNuLHPtoH+9CwvYT ysz8ess489SK5iVoYQViyDaSkP5qFfOkTqolR+qOUit3Z2XakRcEFTJPGT6FPJFOC0Rc g2eDFre6sXVSAvBL7dFH1aesDippUpYcqi6PBM4umc8pEHTI82Zxm8O0TO9JCwPK3n4u wP8GJzCCarOZWhrzPbwBTNcgjqM8b+bQs8q8EHs9nvrQPOG2VmRiqru+PsGr7vYrNVeR Aw3Q== 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:in-reply-to :references; bh=vRavtCuEgDmIK+L0LjCzpchEvsYFUuSGMHsKbPl1OXo=; b=dvsbW3He6i8v4BxMqADzsBPy2J5OQ/0EKxclMfughEaB7cfe1O560vMvBubofDkHFg KNjpEmORor92nrKjkTsiUhTPspi4XWhgPDeXGU5B/qQdqIS7eTUcsw35vJ+p69LZ0qqo CDqIbL1SoCc/XoPEcJpIoszKlLa/LnbcOzLox+R5CSi2SvmuJ+eC4BYRAfnWHR0esBZ3 cz0jaFwUEuzmHXnfVFSCGrl2VIBkMcKnbBB72ujO516s3CAmaYnF8FG6CVX5mS+jHsoY fYMOsxWgekX8ltUFtxPNMD+sXEPqfmDAcCvgMQGaLO8CGMmRcm6IBl10s0z0tM8SVAUk Vl/Q== X-Gm-Message-State: APjAAAXZ96NcQrJd4GmbVcNWnQ6VMiKOxF/JrWU015Ao8QL0OCF5DVu4 Z959dL7sOPec43Kw+DQBtrCfFg== X-Received: by 2002:a63:ef46:: with SMTP id c6mr5003771pgk.392.1556816049674; Thu, 02 May 2019 09:54:09 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id j2sm69949pff.77.2019.05.02.09.54.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2019 09:54:08 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] coresight: replicator: Add new device id for static replicator Date: Thu, 2 May 2019 10:54:03 -0600 Message-Id: <20190502165405.31573-3-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190502165405.31573-1-mathieu.poirier@linaro.org> References: <20190502165405.31573-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan This patch adds a device id for the new static replicator compatible string; it changes the driver name from "coresight-replicator" to "coresight-static-replicator" as well. This patch also gives warning when use the replicator obsolete DT binding. Signed-off-by: Leo Yan Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-replicator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index 4e0da85efd2d..8c9ce74498e1 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c @@ -189,6 +189,9 @@ static int replicator_probe(struct device *dev, struct resource *res) dev->platform_data = pdata; } + if (of_device_is_compatible(np, "arm,coresight-replicator")) + pr_warn_once("Uses OBSOLETE CoreSight replicator binding\n"); + drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); if (!drvdata) return -ENOMEM; @@ -285,13 +288,14 @@ static const struct dev_pm_ops replicator_dev_pm_ops = { static const struct of_device_id static_replicator_match[] = { {.compatible = "arm,coresight-replicator"}, + {.compatible = "arm,coresight-static-replicator"}, {} }; static struct platform_driver static_replicator_driver = { .probe = static_replicator_probe, .driver = { - .name = "coresight-replicator", + .name = "coresight-static-replicator", .of_match_table = static_replicator_match, .pm = &replicator_dev_pm_ops, .suppress_bind_attrs = true,