From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F07C4C0015E for ; Tue, 1 Aug 2023 09:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s741SVT/2s6dmmTLdV8UloZ1K0YeKVVwA/hJ6C2k1qg=; b=WjaNxJBos46Og1 TZ9BjJ4xeT8+wVUtlPLQgppRMoKCrHbcSo0BouOkzU/y9sQ3THUPano6/ZNxHPHRF5Y0t+hUsMjQU u1ejjXkXENmhRyCcQk0mqmTCOMJX5A9LsC17R4xuw1LiybdQ14B6Enrds2oLT4w0rFc1c0dfZO62l +UoXaNII65hIFmwtXEikj6KOrIIwfeDVZGAlWRfPJcmJFqSXHBKKAGbsJZsVlt4ZPnnnqf3fY1wlr wdg97moTQNbLB8hItPBSuqCBsZs63ABYtJ8sKnUFopyV6BYWB/AZ0egbEqxudewxMIsak3nc+bGMy d437vHwXhKGVCTNkL0og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQlux-001eBL-1a; Tue, 01 Aug 2023 09:43:51 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQluw-001eAF-0M for linux-arm-kernel@bombadil.infradead.org; Tue, 01 Aug 2023 09:43:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=iwb9CBNT4/f2vEJHLhafIA+pbYuYRXfDO81UdeO66WU=; b=k7FxkN2hs4SIH3LHOISppvtlXG hLhIWyrIqn+icAD0U+1QO6v26CAzN3FIHR4FNa5bHa6vmZ65xBvbMArX/BNsANEBE+aIARBeIrnxJ yp4CKorndqCObCkgBbZzmi4AG1gSoDcxBmGqY6zvC7K5AoxtB89ppXf0bVBXrXU/4Cp9eryrfyq7q RpP5KEF0PYG7S9214ZT+pyA1rIZhxqwgp8wysSvnz5JM9wremfX5m3mRV1GiDFuBMla1h9uQ/W8a+ /BDO6cerpzuBM1D9MZr2SDxD+A41+mo32z2RCu24z7e5IQwzmfz0o400+uytsNZ6DQ7xUMATUyx+f DAnspoSw==; Received: from foss.arm.com ([217.140.110.172]) by casper.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1qQlsZ-007fdq-SK for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2023 09:41:26 +0000 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 5B0551650; Tue, 1 Aug 2023 02:42:04 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.53.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 454B63F5A1; Tue, 1 Aug 2023 02:41:16 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Mike Leach , Leo Yan , Alexander Shishkin , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 4/4] coresight: trbe: Enable ACPI based TRBE devices Date: Tue, 1 Aug 2023 15:10:52 +0530 Message-Id: <20230801094052.750416-5-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230801094052.750416-1-anshuman.khandual@arm.com> References: <20230801094052.750416-1-anshuman.khandual@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230801_104124_617541_C31CEC52 X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel