From patchwork Tue May 7 10:52:57 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: 163499 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp1184339ilm; Tue, 7 May 2019 03:54:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLWSglQjc7aA7O7mZQsU7Ru/NDQ3T9lpK3ind1qocK8nzI8yoZ+llg03LFrITjesHjHXyl X-Received: by 2002:a62:2ad5:: with SMTP id q204mr39928582pfq.259.1557226471890; Tue, 07 May 2019 03:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557226471; cv=none; d=google.com; s=arc-20160816; b=xEHUKV/pqqccOWO7HOdFIly90vEWfS59jt91EpKCghHtZ48ceiBzUutZc7GDMPb+k+ I2fFPg45iEcWVfhraoPUqs6XsiUBlB1e2wtZop0/wete4yg8xIRGeH8qvlrB5exywLvz kqF+J1/ga41hkZjrS3JocTNv4pPMGlKZ/K6r+SL81wTtvGLN7X85UzunL4XlVTiH9eKS 1/VCTLr1G2OM8DXtnuQC3QqAxvOsxrEr2CMLocxx7Z5WGwAN8zxV7zvv0CgHTrrRygfH M1HGStgLIYJWU8agR/G0aSm8j1kMPwF9kb9UyOZxRLdq6jOcfJrF3QCHZGjJeqB8Jg5A WIRw== 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=nmbBeEwPsTeXrlglOQj57JYxsc5OW5HlW1/jb21at2pccXZeZwqVAYryYR1sDviPGJ KQLqHFncAegIGfusFsXlf5pDd2MY0jzLdHobk0qdJD6Q5iiYJg3Kyg8nz/6ZHit9xOsh FvKplMPU1gIdI3wEW5x/d7JUAQX5RZhhxQf0QNZvcxaaaaBma8Y+jJsKtrOhiz+lqn/j zsm7FgzxWmT3OKiQshXCIrGSP+AslZzEUHgdkVleuMJEwlJ9GSCuD4Jb/d2XSbRXxNfM M30bL98c+5OzPgLZKqXykT9TIha1SbvjVeArBY3i3z789zKrytFGL/g4qy6h5kptuZ/f RNeg== 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 y29si19428379pgk.120.2019.05.07.03.54.31; Tue, 07 May 2019 03:54:31 -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 S1727315AbfEGKya (ORCPT + 30 others); Tue, 7 May 2019 06:54:30 -0400 Received: from foss.arm.com ([217.140.101.70]:50390 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727270AbfEGKyZ (ORCPT ); Tue, 7 May 2019 06:54:25 -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 E5D7D374; Tue, 7 May 2019 03:54:24 -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 B14D53F5AF; Tue, 7 May 2019 03:54:23 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, coresight@lists.linaro.org, rjw@rjwysocki.net, mathieu.poirier@linaro.org, Suzuki K Poulose Subject: [PATCH v3 30/30] coresight: acpi: Support for platform devices Date: Tue, 7 May 2019 11:52:57 +0100 Message-Id: <1557226378-10131-31-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557226378-10131-1-git-send-email-suzuki.poulose@arm.com> References: <1557226378-10131-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, },