Received: by 10.213.65.68 with SMTP id h4csp36205imn; Mon, 19 Mar 2018 18:43:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELtHXita1ljDc21rLsxKt5yHZfbLxzkcE3aV/mPH9cki8ZsCisWZ+PEZJxMuma4B1E76DLIe X-Received: by 10.98.217.85 with SMTP id s82mr6031885pfg.208.1521510197306; Mon, 19 Mar 2018 18:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510197; cv=none; d=google.com; s=arc-20160816; b=HBdAY9H+x7vp7RQ6Oz2pcVwc/VNLceXlvsh46A89Tpn/Ya8+wKhmO6B3Ir2wi67OWp Hk9vmvS4ay+jrlMXRPtwXWvFK7WW8dXNFedFjSdZLVQWY/2tATZoI2pwLnEOUUKnIZMO 3e60mGFy3NXfmYyhxbFeArHEFQuEfcaBE8bP1S4psGQhXET1V7GEiOdly+p52r2YE2wB 4rBY7pWDwsQ7lf414yLHiOMrrAae42EQeb794Cr37NRLBlBPq5lZkQg8elD1dYTZL8XL q8cECc/0roqBlSMFH0edguAC5ex93afB75VkyCLNcHCQWhZLo6qZUj0T0tuBODiU3d5x 4rGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=R9so2eTh9LntcYSgco/L5xEZRjiaT9FyFrul6vboqy8=; b=r0wTuvBSokPa5gG2zoMhtgtwBGfiPA3ynXNPXWX3bX8E1JQoZhBN8tqjBeE00Wfi/4 z5p5onyvBTO82HXKX4OECOqx9qq8d4cnqFAbf+FT23Aev3lrqwxLwEwLQeoxoyiE/SKv ikhoL3D4IOHYhVanSr30x+oMbfvZi6FF5RaXA0NPLUX6eH67CS66zVb1LV+Qz8N/u2Zc HMuIn83hBaVQ1bam8fY8+OmEtRTRr+IymX837OoWIFa6UZbeh4Rvx+TqwIIcDK/BLHyc qKemvUP0QvKV1lfbbq7wPfJZti3zBN/8UvxejJPdmQlDIo0LT4pflU4kjo2sG4AJEG2M HtKw== 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 u24si388792pgv.424.2018.03.19.18.43.03; Mon, 19 Mar 2018 18:43:17 -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 S1030688AbeCSSOd (ORCPT + 99 others); Mon, 19 Mar 2018 14:14:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44150 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968880AbeCSSO3 (ORCPT ); Mon, 19 Mar 2018 14:14:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B048EEFB; Mon, 19 Mar 2018 18:14:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Leach , Mathieu Poirier , Sasha Levin Subject: [PATCH 4.4 061/134] coresight: Fixes coresight DT parse to get correct output port ID. Date: Mon, 19 Mar 2018 19:05:44 +0100 Message-Id: <20180319171858.124822699@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mike Leach [ Upstream commit eeedc5421dd3b51de73e6106405c5c77f920f281 ] 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 Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/hwtracing/coresight/of_coresight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -150,7 +150,7 @@ struct coresight_platform_data *of_get_c 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