Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1830634rwo; Wed, 2 Aug 2023 23:42:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVPXS76CC8uoBRaoPkDUUGH0rAluCJBR3f/z+m74Q8d3q5GFYqBy5uuErTCcy1sngLLrD3 X-Received: by 2002:a17:906:73db:b0:993:f996:52d5 with SMTP id n27-20020a17090673db00b00993f99652d5mr7033155ejl.25.1691044948474; Wed, 02 Aug 2023 23:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691044948; cv=none; d=google.com; s=arc-20160816; b=tdbrfUymck7yUyD87IMlO8JQI/YQkenFVDql3bxUwxohXImarp2N8MRcpyTwlQaMAa ole4bVLz8MGPRi4qOT5PUzHjRh0hZo+f3vnMfsZFSb3Z0ormTKGIfFzM+7ooYESAcze7 MQQWw8kkiejIojHtyYi1bfI/BG9Yo5Qy1mdXB3D2h3/OXpBJYvMefRSzK9t0hrZWfiyA 40jzg08JXjXB8JeDIY5CvHqwE2d1ny66OxiKFGQA/mOyJBHBJX9/2MDOb/m1FP9Wo0Ym +mBddJXPrTv7To3JIWewRhXMFwuPLzcNmBjofVirqc/X8a+zS7YvqPlak3+c199i45k8 pTFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iwb9CBNT4/f2vEJHLhafIA+pbYuYRXfDO81UdeO66WU=; fh=PK7qZE2l3RufuWL/yvUO8bu8mrcIpscTWlY+prmDsuM=; b=Bz/l7rvMk0tImTWuQBtgm/9k4NKuKGbtTkHcuM3m/8+hE8v/rEMLgcgtDWT/7WPCcl 2HkQX+5ZAKhRUFTZSn80dsaGzT3Pdbnp3NIzEVJfGUvD1KxI35P7vyJAZJ49ajz5MXWR Aru2/uqGblvUYu3iGvmttk/2ZMVuzwn0bl8kGGEc71696reydd6rq1xfthrh+in1wT3A iiQjV3McByPfDgbn8bGoJMjSacy/GJ+leTcBampXKmYKJULHs4qPgbd0DAWXgAu0/pTm enObUIuA13WYVRL7gkAjIfiAOdtBucvP4JbvstJctv1F8w8whf9fJeCTjB/FOGjBduL8 VUcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay21-20020a170906d29500b0098cda9c19f0si3495990ejb.762.2023.08.02.23.42.04; Wed, 02 Aug 2023 23:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232868AbjHCF5s (ORCPT + 99 others); Thu, 3 Aug 2023 01:57:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbjHCF5f (ORCPT ); Thu, 3 Aug 2023 01:57:35 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 77D1830CA for ; Wed, 2 Aug 2023 22:57:26 -0700 (PDT) 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 226B712FC; Wed, 2 Aug 2023 22:58:09 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [10.162.42.10]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CDC223F6C4; Wed, 2 Aug 2023 22:57:21 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Sami Mujawar , Catalin Marinas , Will Deacon , Mark Rutland , Mike Leach , Leo Yan , Alexander Shishkin , James Clark , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 4/4] coresight: trbe: Enable ACPI based TRBE devices Date: Thu, 3 Aug 2023 11:26:52 +0530 Message-Id: <20230803055652.1322801-5-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230803055652.1322801-1-anshuman.khandual@arm.com> References: <20230803055652.1322801-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This detects and enables ACPI based TRBE devices via the dummy platform device created earlier for this purpose. Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Cc: Alexander Shishkin Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- drivers/hwtracing/coresight/coresight-trbe.c | 9 +++++++++ drivers/hwtracing/coresight/coresight-trbe.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c index e1d9d06e7725..f884883e9018 100644 --- a/drivers/hwtracing/coresight/coresight-trbe.c +++ b/drivers/hwtracing/coresight/coresight-trbe.c @@ -1537,7 +1537,16 @@ static const struct of_device_id arm_trbe_of_match[] = { }; MODULE_DEVICE_TABLE(of, arm_trbe_of_match); +#ifdef CONFIG_ACPI +static const struct platform_device_id arm_trbe_acpi_match[] = { + { ARMV8_TRBE_PDEV_NAME, 0 }, + { } +}; +MODULE_DEVICE_TABLE(platform, arm_trbe_acpi_match); +#endif + static struct platform_driver arm_trbe_driver = { + .id_table = arm_trbe_acpi_match, .driver = { .name = DRVNAME, .of_match_table = of_match_ptr(arm_trbe_of_match), diff --git a/drivers/hwtracing/coresight/coresight-trbe.h b/drivers/hwtracing/coresight/coresight-trbe.h index 77cbb5c63878..94e67009848a 100644 --- a/drivers/hwtracing/coresight/coresight-trbe.h +++ b/drivers/hwtracing/coresight/coresight-trbe.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include -- 2.25.1