From patchwork Thu Apr 25 19:52:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 162864 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2362347jan; Thu, 25 Apr 2019 12:53:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKy5hq1XOh0V2/p0xUGvtSm68mUR0bDkUSdo7qMwFeDRotG3+9AtCbUkW7IjU5Wou0wWF/ X-Received: by 2002:a17:902:2ec5:: with SMTP id r63mr41654387plb.139.1556222015813; Thu, 25 Apr 2019 12:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556222015; cv=none; d=google.com; s=arc-20160816; b=MlzTivNdWdyMrew3PZbFkFbDxL3vGEauYEI4pNHQi2Rvpr3kCC2Jy/SYfA/A6pgCaB iEzF839HffbHuSL2vfN09AU2djHAGOjg0k2RDcrWRR3rFZSIYkwHm5vSGXuK8Pwz9xvE 36w9SX7rRHf1APc5H23D0iu3dBXILMGC/d9KoVdrMUy+gdC9qA39c8ertTa8x7Y7amC4 qhQQF+byZaiHn8QpBNmyq+jxJcxKJUYaiprio1i8nFx8kbuJFX1esTb2qJLpVNVOeQHI cKYzwd2D/O5niA9n9aGz0IWHMI8aio6uH4HVg09YaNpkh5a8I+hSldxp1H0LpKechxLQ nizQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=N4DXUAnG4MgIchB4rUOv3H8mFdzofOw3TD3XHtggT3U=; b=bWV48yLB4OMr7Y1QduySO9Sr7qHOojYykeO0SOXmgqPbVuTB5GAKszwuiA/IQ+Nbmb gp4buifoxgoFE7GtbsBVGqu+oH+b39Ckh6NpMfHcUTPNnxaHdcSMNHWKh0AeaqPj8UUj b79a24jyg9gHu0JZD02IkTR26fY0SXNCLa37GM/67ESurEWzoaV97jGtkbquhoY+Rv+6 PQjf3IviOO1VWxqvfrEBivumbEXyRUS/pTcfSxikPu7yjkTOJbqSeTYx9CpVKS62SaeG 9q+a5E8TDcmTDmj++2lNJRPXJSlYT+xpUL/nXrg33v+rmfWVHV+/jPrpoTTnpH0jgkLk vmzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CDD0L/r/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si23201718plp.201.2019.04.25.12.53.35; Thu, 25 Apr 2019 12:53:35 -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; dkim=pass header.i=@linaro.org header.s=google header.b="CDD0L/r/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387788AbfDYTxe (ORCPT + 30 others); Thu, 25 Apr 2019 15:53:34 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34144 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387764AbfDYTxc (ORCPT ); Thu, 25 Apr 2019 15:53:32 -0400 Received: by mail-pg1-f195.google.com with SMTP id v12so380725pgq.1 for ; Thu, 25 Apr 2019 12:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=N4DXUAnG4MgIchB4rUOv3H8mFdzofOw3TD3XHtggT3U=; b=CDD0L/r/W2izojuuskGojdB9Ow0dJAX4t2ZenjRv1o7qzqSkLcLlw72oCgV1xJMS3O Jo3sUIyD0qmwZQlyDjWakW21UDQQ8PHGARuVSOSK3N6TgDsRLh7yJbEqyFKrdzUTE5CD 92ubrlw2jtDZ3i23+nu0MVf1yIPToQPk2WMCXUDO7gwUH5CcknpnpyQiXRpco4+v0oNx AGsKETozDJ6SjDmy4xSBq2o1I3TiBGYUAbyPWD8AN2jEmV1hWHfC57XIp+frHEDPi4Oo JiOGrkYd1eBICgITyVvd2cp6s4UFDDkZyel0m3bETPcf1KkTKENFpEeuXkLYLsBcRoa8 JoMw== 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:in-reply-to :references; bh=N4DXUAnG4MgIchB4rUOv3H8mFdzofOw3TD3XHtggT3U=; b=cfQS/J3JwmtGp10jPIckDVViFdRM+HYxiPHmHRuGCL3flhRoDnFG4rwGj/OCcOkO/a 9lx7CTD/84WV2oxc5OmF5Q/W06lcomwwdnUTzm+HYsbUHsHFjRUApVkhC6FpjfBFwJeQ GFDxV7PcpgEWp2zUuH2K+Qzz25q4a+3YUBqhgaX1NhQKhuOdEb8jwnyVuRoa6xbtuZ8K GzIT0ZPU6SzfyRulYYf2sijqO3FK+E7cA3xnY7PBsU05GV4dW4Zq17Rg9jpWOS3myklk e8F/fPrxCM7wTgM7tpXmWVTTYrwEU7Kt+c8Nvjv+4UtNC4Ekb0vnyr1V0lt1xrAsT/h7 qttg== X-Gm-Message-State: APjAAAVwww8gK4bjUGGqdnNObOy5KeSPLGfv4IUr3f/tLGHF8ARGkFzi hMlHdmh1K8/Cj/hPsgd6bfNyzaqTmn8= X-Received: by 2002:a63:4241:: with SMTP id p62mr39140139pga.379.1556222011753; Thu, 25 Apr 2019 12:53:31 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id t64sm47261961pfa.86.2019.04.25.12.53.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 12:53:31 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/32] coresight: etm4x: Skip selector pair 0 Date: Thu, 25 Apr 2019 13:52:53 -0600 Message-Id: <20190425195310.31562-16-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190425195310.31562-1-mathieu.poirier@linaro.org> References: <20190425195310.31562-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Resource selector pair 0 is always implemented and reserved. As such it should not be explicitly programmed. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Tested-by: Leo Yan Tested-by: Robert Walker --- drivers/hwtracing/coresight/coresight-etm4x.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index 732ae12fca9b..d64192c29860 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c @@ -138,8 +138,11 @@ static int etm4_enable_hw(struct etmv4_drvdata *drvdata) drvdata->base + TRCCNTVRn(i)); } - /* Resource selector pair 0 is always implemented and reserved */ - for (i = 0; i < drvdata->nr_resource * 2; i++) + /* + * Resource selector pair 0 is always implemented and reserved. As + * such start at 2. + */ + for (i = 2; i < drvdata->nr_resource * 2; i++) writel_relaxed(config->res_ctrl[i], drvdata->base + TRCRSCTLRn(i));