From patchwork Fri Apr 12 10:27:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 162107 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp449578jan; Fri, 12 Apr 2019 03:28:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj7fLYXsbawiWEFCtpK3CSrC9JSsHhSJB044DZu8DlRDXcsfvxwCfvM/4tnEtSUHbWQER0 X-Received: by 2002:a17:902:585:: with SMTP id f5mr25419698plf.116.1555064888251; Fri, 12 Apr 2019 03:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555064888; cv=none; d=google.com; s=arc-20160816; b=Y/y6rnQpQoGzZIauEzQmtfTyYuobHF5QTdyeozI4ask+Ti9e91Xv+HFBTTmG43Fgpu 28GJ3DtS/hV2tbzW8UJiLYSY3412eeW3K3BghcidFBZjaWK1BXv4Qnw/tch/EKMMSEwo MHUwx6v0QGJpmf8JEC+vNXFmd44H/4m/5+cwj5vctM5MAb7Hp7Qyb1my+/e7hHTMBcgs 7J9f7hlSs2/PBIIlmizTvL2v4HlEz/Lsb8CGF41YP3ubumsfzPKM6N0DSEnGwiKnLFBN 4bxNHX6Wal5pv/QqDNSvGp9OjnG4f6HqgeAQZsYDG8MLLJplRR/Qs2SV4aSN2kv6qWpQ 4/dw== 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=ryZOG9VWOye2KDv1BF4UI2W2F776JTHdFGOzv+qLbPo=; b=BH1hJkIEKPXBIhgVIe2Bv/9a1BG4WpdcuV5A562p9PLjK0YJTXnfyN/Gy7ktof5EKu DFZX1ElfB9tIunwNnBH/MSMIGvc3W8a7UreCMn4JQ/wRLtS4bMF35USNB5/oUf4A1WSV F72EpxRNnfw44oFi4LrWzkJ7Z4Bra42a0OqGFYsIKlUzJ66itG8wFpBFog/4PU+6W86R EP/X/6PbKkMRFK49sr24aUpXgT7hPFoM9VVtVyp9DuNr54II1IJQqG3wbxPrz1Lw6WY8 qqLEBh9YWDL1Zzi1IEjIJACTlyyHf9p/6BGtXkNnCSOEsyK5LMgkTe+9aFIiNYctBXra h6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m+qjN7rn; 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 u37si36506905pga.301.2019.04.12.03.28.07; Fri, 12 Apr 2019 03:28:08 -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=m+qjN7rn; 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 S1727547AbfDLK2G (ORCPT + 31 others); Fri, 12 Apr 2019 06:28:06 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:38618 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbfDLK2F (ORCPT ); Fri, 12 Apr 2019 06:28:05 -0400 Received: by mail-ot1-f65.google.com with SMTP id e80so7938049ote.5 for ; Fri, 12 Apr 2019 03:28:04 -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=ryZOG9VWOye2KDv1BF4UI2W2F776JTHdFGOzv+qLbPo=; b=m+qjN7rnHvouHXvPK72mSWvcvikt0TijoLIzMUiXOiILop/kWoWNjLWCSwNK+NyVeX 42jo1Ax8efWMTT9zuVCDmO+ERI+ul5w7QDrj4uB97ur4laQQm4mjGcIEAIzR4+BA6Pfm U3w5FYsXVsRYUKP8mlRTlh85oIJ7pOdwD3r18bNMb9ExDhCDYcpJQvpLDwEWQtHKKsi+ 3Y8StTc5jadZcsydlXhJJ3ycRdBjgHAHuWDm/RM5kvkghhNgtU7xhPZBRhHA/7/T3ZP1 CiJSCVDXl9QG04WeIvsmLkGTGgNZGCituYChFt7ugQefRRj1ft7UcUvbz3NKPqeDveFV n8cA== 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=ryZOG9VWOye2KDv1BF4UI2W2F776JTHdFGOzv+qLbPo=; b=WHvNYWu6Rc7UWWwhoTcGvlh/VBcs9D/NrZWMclA+Hss+1KlbVYW1KkSvyQjJejSk81 EgIPtPqwXFsqbRa7RwSH8dU1VxOxiKvdMRYXDwht+klwXrwPSZRO+A2DLkcwtOStiXtP SI4ekXIhg1+pRbszBxZ/fr+kIj6WS7XcukhVwVQRrIBjW1MmORgqjzXEwqrT2ISsDYub Xw/mRJxLMrOYTMP2gGclwwkBqlT9AdEHXpi0F3ivLTcqmJuUjJ13IsnIJMPyUr+WYAGG IJPGeCvJxjvYavrg6//5l08PoPoHCs3K42BJ7iX+BUjQFpi3AWMApdH/JHGZnt1+AobY jG6A== X-Gm-Message-State: APjAAAVt3aAfnP77V5sNLlWOIhLl+aQrF9M89FZ/6NLgq1ViJSl6k6sL fS93cjZI6buLBmrdS6u0EChNcQ== X-Received: by 2002:a05:6830:20cd:: with SMTP id z13mr36530493otq.168.1555064884588; Fri, 12 Apr 2019 03:28:04 -0700 (PDT) Received: from localhost.localdomain (li808-42.members.linode.com. [104.237.132.42]) by smtp.gmail.com with ESMTPSA id 88sm17530692otj.3.2019.04.12.03.27.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 03:28:03 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , Mark Rutland , Alexander Shishkin , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v5 2/4] coresight: replicator: Add new device id for static replicator Date: Fri, 12 Apr 2019 18:27:36 +0800 Message-Id: <20190412102738.12679-3-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190412102738.12679-1-leo.yan@linaro.org> References: <20190412102738.12679-1-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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,