From patchwork Fri Jul 26 16:08:39 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: 169860 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp245763ilk; Fri, 26 Jul 2019 09:08:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJZ3xcLCggLa/kZb8gnn15zDzFP62k/U26ugpXmXqIyvEG0/gFBnQy2WLTwwPJlUsEqTzf X-Received: by 2002:a17:902:aa41:: with SMTP id c1mr96396850plr.201.1564157334196; Fri, 26 Jul 2019 09:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564157334; cv=none; d=google.com; s=arc-20160816; b=YStyXXbfty/zvMd5J0JT7ieSId+HzVNRgx7ZQplUKlSRRyCoJou6txUkOBCJ52BVpj dKQWyRis9xpLNnsXjCT9Styawn2sLoL2z3TMfp8aATUizDm+O7hXIUW0jMVLbPycydot tjIQkeCRCHJR487Ic3GYO/y4TGzk5BePMeuTmD904/l1tA2s9y9YmoWYfOgx/40YEIw4 lDFuzjqBXwxfLGiDRE3IqGFtQZXyZItKAapujmuotGCgLYA5n6Iz4O2/ldD1+4HgsGOL qmjiZmES82xT0JrgvsMfCcIHCFcIoKwkf5zcWePGQGP4/ge8AwmWve/LPHOKT88QRAM7 EiAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=t8vdMU9RB1plyCW/qUtiOUSs7CscuunboGHwcC9d8ZQ=; b=aRbTNEDhqrY0s2X8wNJtges4c1rfyrQ9I9dGqvmi6kyn0ySNz1SGqIF4umEmamM37z kaEsBlWyIxEhaxvOsZhlX7aa0bb94F3JKtc2yqoc8jl8EGfDNXWV9gXPdDu1jEEOJjdf 0vY3KwF2mV7vy9QDiM2WvDzNQaN202TMyvdAx92NmtVvDFr9SgUw9aWPfYZeLtnPm8Er dXn9Z9YGqry9nalCc+fLZnaivnIbEvHZsBcFTVwYpZnbQZuYw3D3gvxNQfYC76uzKRUD 2SvO/aWJW/wLzeRtS+GgT4fK06CEInweL8Y6d5rRSe8hyQ6ATORXVjpoe3Pz0Nc9EL4K MjYw== 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 p35si19468060pgb.484.2019.07.26.09.08.53; Fri, 26 Jul 2019 09:08:54 -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 S1727161AbfGZQIw (ORCPT + 29 others); Fri, 26 Jul 2019 12:08:52 -0400 Received: from foss.arm.com ([217.140.110.172]:46838 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfGZQIw (ORCPT ); Fri, 26 Jul 2019 12:08:52 -0400 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 5E897337; Fri, 26 Jul 2019 09:08:51 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9055D3F71F; Fri, 26 Jul 2019 09:08:50 -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 Subject: [PATCH] coresight: acpi: Static funnel support Date: Fri, 26 Jul 2019 17:08:39 +0100 Message-Id: <20190726160839.12478-1-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ACPI bindings for CoreSight has been updated to add the device id for non-programmable CoreSight funnels (aka static funnels) as of v1.1 [0]. Add the ACPI id for static funnels in the driver. [0] https://static.docs.arm.com/den0067/a/DEN0067_CoreSight_ACPI_1.1.pdf Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-funnel.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.21.0 diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c index fa97cb9ab4f9..0c99848a5d69 100644 --- a/drivers/hwtracing/coresight/coresight-funnel.c +++ b/drivers/hwtracing/coresight/coresight-funnel.c @@ -5,6 +5,7 @@ * Description: CoreSight Funnel driver */ +#include #include #include #include @@ -302,11 +303,19 @@ static const struct of_device_id static_funnel_match[] = { {} }; +#ifdef CONFIG_ACPI +static const struct acpi_device_id static_funnel_ids[] = { + {"ARMHC9FE", 0}, + {}, +}; +#endif + static struct platform_driver static_funnel_driver = { .probe = static_funnel_probe, .driver = { .name = "coresight-static-funnel", .of_match_table = static_funnel_match, + .acpi_match_table = ACPI_PTR(static_funnel_ids), .pm = &funnel_dev_pm_ops, .suppress_bind_attrs = true, },