From patchwork Wed May 22 10:35:03 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: 164791 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp694226ili; Wed, 22 May 2019 03:36:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9/qiiL4CYmabyeB3eVKmU7rFahY6UxOjy/EilxMUUtQntcO++OWHL5ajRdTXdvQVEsRTf X-Received: by 2002:a62:6444:: with SMTP id y65mr95579548pfb.148.1558521367541; Wed, 22 May 2019 03:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558521367; cv=none; d=google.com; s=arc-20160816; b=gUepXS3iGX2iud+V2fqQdUM3cgGPcBEsIcN5EtVhueha7dGlbSgt2jpcAWjorjL5vd 6/Z/ebf5tm2wnZF0NBgit4Xo1IOFakYcRVzQvN/lNTh5Azn9jhL0EzlPfc++0XQtN2XQ Fc7s/VhI4YwspBL+/c59xXw9ROcqx9DJALdV3DqVMpHWy9HPJftjKBvBpHz85KSKTp4i b3Ft26GG8exx08x1n2IAgncQgJAE5h4gLjvZZVVCPtl450rb2O3dBak+g9dnyCpEoIa5 5GLe1+1c4kG3fLIO9XXTcrjHsebM4cOZu9xaP45bgmsDnfJUKQwzWW5WnQuXTRWetJy0 Qncw== 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; bh=jw64MEXZ+upkxoLehPP44PmfF6jbnvV698pfZ+o5YcE=; b=bTUoIOfO/nLMAfB5W7KZF4BBpFSpyM4GHq7GDo68IE5YlycQN+COuRyspt43RxpNUQ 7M9IJhNAFqSKVzo5w9wZANsUzBLQtqs+tkWC3/BWBnYDccm+YRdzoUraKbjq3dMB6Jgx KhUe2rr9+6q0JYjcrO16e2uj36zBVNWHy8I92SlHRwJ8z7eQkpYns+ZiVnN5Pg5wF7rd bMpvFejPFafyEBYVJOaG8KsdyM9nPM3tyUr0Q4+B5oN+FhTPFhYM5N3JKr/EX1UuJf/y 11KlZxB5jsvAI3I0mV+Ld43yuDqskLpfPm6p8+Q/uE9OM5sF54WBWc7WhXMeBGqC2ouK nQAw== 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 h68si25312309pgc.270.2019.05.22.03.36.07; Wed, 22 May 2019 03:36:07 -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 S1729530AbfEVKgG (ORCPT + 30 others); Wed, 22 May 2019 06:36:06 -0400 Received: from foss.arm.com ([217.140.101.70]:47242 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729486AbfEVKf6 (ORCPT ); Wed, 22 May 2019 06:35:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 138BA1713; Wed, 22 May 2019 03:35:58 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D49313F575; Wed, 22 May 2019 03:35:56 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org, Suzuki K Poulose , "Rafael J. Wysocki" Subject: [PATCH v4 30/30] coresight: acpi: Support for platform devices Date: Wed, 22 May 2019 11:35:03 +0100 Message-Id: <1558521304-27469-31-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> References: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for platform devices which do not appear on the AMBA bus. Cc: "Rafael J. Wysocki" Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-replicator.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index c0e4225..5429527 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c @@ -5,6 +5,7 @@ * Description: CoreSight Replicator driver */ +#include #include #include #include @@ -296,11 +297,18 @@ static const struct of_device_id static_replicator_match[] = { {} }; +#ifdef CONFIG_ACPI +static const struct acpi_device_id static_replicator_acpi_ids[] = { + {"ARMHC985", 0}, /* ARM CoreSight Static Replicator */ +}; +#endif + static struct platform_driver static_replicator_driver = { .probe = static_replicator_probe, .driver = { .name = "coresight-static-replicator", - .of_match_table = static_replicator_match, + .of_match_table = of_match_ptr(static_replicator_match), + .acpi_match_table = ACPI_PTR(static_replicator_acpi_ids), .pm = &replicator_dev_pm_ops, .suppress_bind_attrs = true, },