From patchwork Fri Feb 17 19:10:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 9580591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9F3426043A for ; Fri, 17 Feb 2017 19:10:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 900C62874E for ; Fri, 17 Feb 2017 19:10:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82ED82875D; Fri, 17 Feb 2017 19:10:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 276862874E for ; Fri, 17 Feb 2017 19:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=TA3UIk2Ya04U3/rJ8SWCeM8BgsBVmpO16ffXDVcxuYY=; b=S3e /o7Q4xZ6Md0zq7P1tjttS8gglqMzhxNX3Wf2CsC0JgiWpzYcSziO9K3RzUiHA8vlJnaYwsmGqFKMp 6ToOks19MJw1kK/jRfPDvql63ZDPw5iKi2VjHe5/aFcELCNqPgj8Z/BF4JA9fy+rOFT4ZVHLw6GTC wfwsGKEgHI5RYF8QQGGRKQaiMiRhD1HYaUmfwtfjfAO98CFPamOwfhlFphFOspo2hky9fKJH56xUy c2tdEo2aKA7twfGb2pCY+z23eivJSsMq+D8ebsa/8vK3QFO1XYC/L/3cerhvOU3AxVQBTo8DSud8E IbtXFLmYInICZDgHqs1jo9Ykd6/ETow==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cenvm-0003zC-8B; Fri, 17 Feb 2017 19:10:58 +0000 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cenvi-0003x2-6e for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2017 19:10:56 +0000 Received: by mail-wr0-x236.google.com with SMTP id i10so35172596wrb.0 for ; Fri, 17 Feb 2017 11:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=MaFXBhKUebQkfpLqbZQM6b4ucLKuE+g2TMh08e0Wjhs=; b=W+0EIj3Oux51Bgq4U5Z6V/1KvUPtoz0XrXLIlqmAU4LEBGknJYP9gYIOD6ID84aIjs AcTFx51iYWlUtgBsuf92cx9gP/VeRYSPkdJzUh0VPzClczvsx+vsGihKA9h0WVQ5EGZR OACKQfRiimun1ycRZQs5AFF9n/e4myNYJwN2c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MaFXBhKUebQkfpLqbZQM6b4ucLKuE+g2TMh08e0Wjhs=; b=YvdRn8Xd/LKfzq3SASSjbBxsi5XqwyYjwBlC3Kjik/KZpT60AbRUv9rTtEuWdhoqgT qeDf/Zpm64v7ZsByWlHi/NHQc3U1bguiYARXCH5b1i59NwHdQFhneGVWSkuzdhBGthSm yHSKQY0PbP3WBqTWx+eX4+TQ1MOmnjDEgluHGIT5hAvcnacYYZYVV5qzEhinUxv6L+H2 96ywtSNt5V7Buvy0eu5LyOFqPELlJs2vZu0OBMLZEP2BZj0jjhcx+FBvawlyT0ggvLAb pmbbUrGT6jCahGxx+/XpkR3GZmlnM4u2dDn1z7fOQ46tCiAB1sKkcKzRHhL4inEAeoHp XlXQ== X-Gm-Message-State: AMke39n9hjInSir2FOJZ1IpkdEme4caXgNw1wvKbC4TGbpN1Sbt5H/NRSXXASrYX/GnOUI4L X-Received: by 10.223.166.137 with SMTP id t9mr7493705wrc.15.1487358629985; Fri, 17 Feb 2017 11:10:29 -0800 (PST) Received: from linaro.org (cpc80201-blbn11-2-0-cust167.10-1.cable.virginm.net. [86.6.126.168]) by smtp.gmail.com with ESMTPSA id y1sm2747267wme.15.2017.02.17.11.10.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Feb 2017 11:10:29 -0800 (PST) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org Subject: [PATCH] hwtracing: coresight: Fixes coresight DT parse to get correct output port ID. Date: Fri, 17 Feb 2017 19:10:11 +0000 Message-Id: <1487358611-2537-1-git-send-email-mike.leach@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170217_111054_406351_20AB937D X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Leach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Corrected to get the port numbering to allow programmable replicator driver to operate correctly. By convention, CoreSight devices number ports, not endpoints in the .dts files:- port { reg endpoint { } } Existing code read endpoint number - always 0x0, rather than the correct port number. Signed-off-by: Mike Leach --- drivers/hwtracing/coresight/of_coresight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 629e031..09142e9 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -149,7 +149,7 @@ struct coresight_platform_data *of_get_coresight_platform_data( continue; /* The local out port number */ - pdata->outports[i] = endpoint.id; + pdata->outports[i] = endpoint.port; /* * Get a handle on the remote port and parent