Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1530998yba; Thu, 4 Apr 2019 12:40:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOxheCkYQQxsFe1oHrfDj1DctuO3POp5ATlqk0hiIfMWFnxdM3ibbdCkj7mfI+tywdzVbC X-Received: by 2002:a17:902:b282:: with SMTP id u2mr8437588plr.9.1554406857345; Thu, 04 Apr 2019 12:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554406857; cv=none; d=google.com; s=arc-20160816; b=YzHw6fPzlA5zovFoeP9oXNwB9jwNTiJOmvNJhUBIIgf7K06oq5BU+B0x8+EDjgUzDw rJgEQfQ6qoovoeQTe2sQinPYctwE2ZsJXENXU1c5MZaER8eZmEOZ9kUR1fqtTFuN1BmC YAgcT6PgvXhsaRtxflMj+PxqDda2I9qdAo5fhRcSoqhTcAUj+NTSRIpV1x5ggpjhxzMm rU4v6Z9eigi0BaMO0uVt4OavuZ2CQlgeYWeSs3a2irJHrMBS++vHZ7Ox5TYVHVWASECs iHXbgHvHu/Bx7GSRsxW82VLh6D+mF8uxHbU4tQcSUpiJ9EmCZgNLxXd/NFb+TQejNqVi DKOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OyRZZw7idZo8ttImDn6hJdO82YY4wxBBf4Wi6EglkL8=; b=lE0ciFnMwblWmz0I5gC++lrzxiZHa5yxUH+teNiJcIlt8fK0WuHDu2nVW+mhkoxw7I OQ5ZBhdqYEFETmWp1KYLxzLQa+W0kYrS+iPFc+YccZPrljbS4UX8Hh1QPdJBvOtKVAlv Ick+5eNk5Wishc2qxRLig5uqnY8Huz6/4jVnmk+JMg9P5NtQAGPXkueKRIe6zyKRe4x5 LsPgpDp1OBlq6sfSLvQIYw2WpFGOIOS9jxV84Ym6ABgw7Wi1QGNaCUAibg0+kI0D/fJS ll3N6Tyl40+vCAPM9tvLYVnxEE2nYvPO/CfRLwEkl+2FwYPJFJf86Y47omsYosutPN7h AuHg== 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 z8si17014898pgc.79.2019.04.04.12.40.40; Thu, 04 Apr 2019 12:40:57 -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 S1730356AbfDDTjz (ORCPT + 99 others); Thu, 4 Apr 2019 15:39:55 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:49765 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729789AbfDDTjz (ORCPT ); Thu, 4 Apr 2019 15:39:55 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 93ED0100D940E; Thu, 4 Apr 2019 21:39:53 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 380DD1C0353; Thu, 4 Apr 2019 21:39:53 +0200 (CEST) Date: Thu, 4 Apr 2019 21:39:53 +0200 From: Lukas Wunner To: Mika Westerberg Cc: linux-kernel@vger.kernel.org, Michael Jamet , Yehezkel Bernat , Andreas Noever , Andy Shevchenko , Christian Kellner , Mario.Limonciello@dell.com Subject: Re: [PATCH v3 18/36] thunderbolt: Add helper function to iterate from one port to another Message-ID: <20190404193953.566aceawn2qi5jq3@wunner.de> References: <20190328123633.42882-1-mika.westerberg@linux.intel.com> <20190328123633.42882-19-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190328123633.42882-19-mika.westerberg@linux.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 28, 2019 at 03:36:15PM +0300, Mika Westerberg wrote: > We need to be able to walk from one port to another when we are creating > paths where there are multiple switches between two ports. For this > reason introduce a new function tb_next_port_on_path(). > > Signed-off-by: Mika Westerberg Reviewed-by: Lukas Wunner The algorithm in this patch looks clear and concise now. Thanks, Lukas