From patchwork Fri Apr 17 08:58:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 47261 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7A6B02121F for ; Fri, 17 Apr 2015 09:01:46 +0000 (UTC) Received: by widjs5 with SMTP id js5sf2685252wid.3 for ; Fri, 17 Apr 2015 02:01:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=AhvZEepHQffdzNablUY36Zm5yWyTYZV+vD0Pbvx/n+E=; b=K3YD5XFJWR/gGtXU7NNR9QUFGvoJqrKyb9L2d317Eyd+Rj9OGjTp4Cd+zKLXLRttg5 T3IMpjvKI3pY5qBWX7BM9adE2Nv1h/3bUp75rvPjctpizpxgVxeCs4hqxZ4MazhNr3aC BVPDLxmXB1T4ZOC2rpQ1iclhSdjXqGPCFTAWRdH3kUXadVriXW/7e5H6HzMvYBN9JZ49 IU6z2KkDh5fls+M9rfNV2Qic+j9DAFv8YcPm9ZCCAP3kQUbUsG353XUW5Mv+jJ64NACV Sa3lAwRZVn7a6Xjf1EGoKLbJGnSCLXukR+ksULQAkKdYimW/JQ5/QVGUyEcZeLi8qFwf YS4g== X-Gm-Message-State: ALoCoQk6KsgbnQ8jFOh00xqLqsqjviBGiYWrCtKcunzbQBrZBJVvpHv1917x3gSs/QzPJDRD6HRR X-Received: by 10.194.236.230 with SMTP id ux6mr901118wjc.5.1429261305762; Fri, 17 Apr 2015 02:01:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.42 with SMTP id j10ls371969laf.27.gmail; Fri, 17 Apr 2015 02:01:45 -0700 (PDT) X-Received: by 10.112.230.37 with SMTP id sv5mr1622920lbc.85.1429261305601; Fri, 17 Apr 2015 02:01:45 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id mi2si8286352lbc.167.2015.04.17.02.01.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 02:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by layy10 with SMTP id y10so75228041lay.0 for ; Fri, 17 Apr 2015 02:01:45 -0700 (PDT) X-Received: by 10.152.26.34 with SMTP id i2mr1629354lag.117.1429261305515; Fri, 17 Apr 2015 02:01:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp3606131lbt; Fri, 17 Apr 2015 02:01:44 -0700 (PDT) X-Received: by 10.70.5.101 with SMTP id r5mr3652198pdr.139.1429261303663; Fri, 17 Apr 2015 02:01:43 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ok14si15898449pdb.36.2015.04.17.02.01.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 02:01:43 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yj27u-0004hk-L6; Fri, 17 Apr 2015 08:59:54 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yj27f-0004bq-JH for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2015 08:59:40 +0000 Received: by lbbqq2 with SMTP id qq2so77568759lbb.3 for ; Fri, 17 Apr 2015 01:59:21 -0700 (PDT) X-Received: by 10.112.16.97 with SMTP id f1mr1691335lbd.26.1429261161663; Fri, 17 Apr 2015 01:59:21 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id f7sm2271119lam.17.2015.04.17.01.59.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 01:59:20 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Mathieu Poirier Subject: [PATCH 01/13] coresight: etm: print what version of ETM/PTM is detected Date: Fri, 17 Apr 2015 10:58:48 +0200 Message-Id: <1429261140-13910-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1429261140-13910-1-git-send-email-linus.walleij@linaro.org> References: <1429261140-13910-1-git-send-email-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150417_015939_834498_68AE5772 X-CRM114-Status: GOOD ( 12.13 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.180 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.180 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ulf Hansson , "Rafael J. Wysocki" , Russell King , Linus Walleij , Trollkarlen Marklund X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Helpfully report a bit more about the hardware found in the silicon when matching the AMBA device IDs by using the associated .data pointer in the AMBA match. Signed-off-by: Linus Walleij --- drivers/coresight/coresight-etm3x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/coresight/coresight-etm3x.c b/drivers/coresight/coresight-etm3x.c index c965f5724abd..66e210d5fddd 100644 --- a/drivers/coresight/coresight-etm3x.c +++ b/drivers/coresight/coresight-etm3x.c @@ -1859,7 +1859,7 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id) goto err_arch_supported; } - dev_info(dev, "ETM initialized\n"); + dev_info(dev, "%s initialized\n", (char *)id->data); if (boot_enable) { coresight_enable(drvdata->csdev); @@ -1890,18 +1890,22 @@ static struct amba_id etm_ids[] = { { /* ETM 3.3 */ .id = 0x0003b921, .mask = 0x0003ffff, + .data = "ETM 3.3", }, { /* ETM 3.5 */ .id = 0x0003b956, .mask = 0x0003ffff, + .data = "ETM 3.5", }, { /* PTM 1.0 */ .id = 0x0003b950, .mask = 0x0003ffff, + .data = "PTM 1.0", }, { /* PTM 1.1 */ .id = 0x0003b95f, .mask = 0x0003ffff, + .data = "PTM 1.1", }, { 0, 0}, };