Received: by 10.213.65.68 with SMTP id h4csp1721556imn; Mon, 19 Mar 2018 11:25:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELuB3GUoFEWPcq9Dy3kRdBSvg+AXIVP+pVuZnqOpwdQsituqayXyrgkdy1yEtEI68zJLBNAW X-Received: by 10.98.185.11 with SMTP id z11mr10974323pfe.153.1521483927083; Mon, 19 Mar 2018 11:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483927; cv=none; d=google.com; s=arc-20160816; b=JtItmYtqHgGvP8aCu5jj9s16g4js33FzzAUXSiD/dwXTqvjMPiM3EfwnafvdPhhhfh vhZ4bhbhXxiXf3deBVnDuP5pp4stccJpTPjUyXzkB0BYx1IIS+8yctXP12rIVd74eqR0 1PeZhK7suefX5VLL8V+gafR6InTNwy8FQc5y5v9SMy5cnwRnaeeBLtA2hhtQ11040Ifm nPM7T9fwv8/FnVwF/qgXR7L4nF5kZ3DR+58EAJ7AtrUh1p1g1QbZuNByMT2kPXTtpo6f PNjeokoAsJ6N7Ue7S29YzdewAzgSf0/ofQBERan3VWoLseHTDRpPYtUUqU4RenosGdwz zDvQ== 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=dJN6T9PhY8rcXe1B5n++IE1ORxD4GiOKv2YxlVLo9aA=; b=aaNiH1Ke4wlXmkT0zWxs+t//YF9e/k8in8sWF4/nW5mE9kGzUK2W0p4n3dYlhbs1d5 I20tFj9HBssj1LVVFKSJGLS3q34IwOcaJ9mn3PV9kxz8zxJdwbHjyZSbdVuMfLjR8eU5 NEcfwmvHF/KdRQGp+uPhs8I/V+FlvZQwPQQDDG9giionjXw88lGDoLoJE7pQnqQKhPMI PZ+1RH/N64pzICv9VYqM2MDNyF4bWiNeKIK/zFwqClzorzzKkb8+QptfnfotZEkPEiWB PBAHOiYF0eTy1h1Fc+xmkaYV+cMdgQFbp//K3H6z5Sv61Qpfaz/98kXx7OC8ay9fG2FG l2gw== 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 80si311286pfj.22.2018.03.19.11.25.12; Mon, 19 Mar 2018 11:25:27 -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 S1031457AbeCSSXj (ORCPT + 99 others); Mon, 19 Mar 2018 14:23:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49502 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031429AbeCSSXa (ORCPT ); Mon, 19 Mar 2018 14:23:30 -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 01577CE1; Mon, 19 Mar 2018 18:23:29 +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.9 125/241] coresight: Fixes coresight DT parse to get correct output port ID. Date: Mon, 19 Mar 2018 19:06:30 +0100 Message-Id: <20180319180756.380379105@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-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 @@ -149,7 +149,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