Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1013206ybp; Fri, 4 Oct 2019 08:19:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1eKM9Y+Ec25yYKnC/JHOd//QLE2m0r24LGb2Hqq+nXeP2jU9ExtvZFqQSB7gSwvmjLPdQ X-Received: by 2002:a17:906:cc9b:: with SMTP id oq27mr12842861ejb.125.1570202380475; Fri, 04 Oct 2019 08:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570202380; cv=none; d=google.com; s=arc-20160816; b=Y1ZQtBUQOibRCwLWuA+wHh4HUGn/+vQSe0a0Mt6YNqk2qf0O2jOqx3DQbxnhe8p0H+ j2lyIDVbWkJvJa4lPKAPuDeIzhNl18vtDEP/lTLO731cFtN0fWag/6A6a+v8L2+Bm1y4 rfKbnqlI800Jo37Q7Qxi5D8X9pvvQ4J4LSLMGjRlcUIKWZVnvTEvJZtGML4OubvSDRDd aUGvqhWSguR4C/Ctns9G1utqyVeur5UPAsOm2k4GDRmCd1PHg/UfuKS5NBkmIWnDdPki xdr0GeRKOiyGa5hIk4iKlwpXDPo35+Vcda+wmqQNTBhExcVeehrD1aChPJEGKmIPaE8/ w4Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FwjY9z0M8VNoGy41P2B84QnQJOZT8GTylEZ8qTZQ6ec=; b=p5jW6YolaYfUEIHQaKln3wVe28Pt1xGY/bODS/w/7WMsAVukTPzSt5uGJG1WDCXtlp 6Owv76RErmbGveIyhQdCO+CHvYY3IREARjnkqvotTg6lcefUHLSyb6hm3AknwNZcSLlw QY4uk6RuSS+tSSRvVNTf30t+pN94CNmjGIRtJb7DTb/IULox9VPANDCw4y+6FQypLcjb gZDR7rd5cNr0c7WKzNtplobycU77MH2CkdVCxwLAjBqvx0+xox+Bm7EJxwQawtoxZ5AR 9bJavUpmzOLiiwQUsNrwpM1k+QImGKS5H5Mw7KCdgc3MiQvhROID/ag+3w9NL8K2zSzv cCsQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f43si4059533edf.422.2019.10.04.08.19.16; Fri, 04 Oct 2019 08:19:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389586AbfJDPQ2 (ORCPT + 99 others); Fri, 4 Oct 2019 11:16:28 -0400 Received: from mga03.intel.com ([134.134.136.65]:26830 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388802AbfJDPQ2 (ORCPT ); Fri, 4 Oct 2019 11:16:28 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2019 08:16:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,256,1566889200"; d="scan'208";a="205878501" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 04 Oct 2019 08:16:22 -0700 Received: by lahna (sSMTP sendmail emulation); Fri, 04 Oct 2019 18:16:21 +0300 Date: Fri, 4 Oct 2019 18:16:21 +0300 From: Mika Westerberg To: Christian Kellner Cc: Mario.Limonciello@dell.com, yehezkelshb@gmail.com, linux-usb@vger.kernel.org, andreas.noever@gmail.com, michael.jamet@intel.com, rajmohan.mani@intel.com, nicholas.johnson-opensource@outlook.com.au, lukas@wunner.de, gregkh@linuxfoundation.org, stern@rowland.harvard.edu, anthony.wong@canonical.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 17/22] thunderbolt: Add initial support for USB4 Message-ID: <20191004151621.GL2819@lahna.fi.intel.com> References: <20191003080028.GK2819@lahna.fi.intel.com> <06a04bff94494da99c5359a7fb645d19@AUSX13MPC105.AMER.DELL.COM> <20191004075426.GA2819@lahna.fi.intel.com> <20191004081951.GD2819@lahna.fi.intel.com> <332849ed8714496587251b6319a11b0b@AUSX13MPC105.AMER.DELL.COM> <20191004142110.GJ2819@lahna.fi.intel.com> <1570201357.2.0@kellner.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570201357.2.0@kellner.me> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 05:02:37PM +0200, Christian Kellner wrote: > Should work. What would the value be for Thunderbolt 3 (and before)? I > guess '0' if I am looking at the right thing (bits 31:24 in > ROUTER_CS_4)? Yes, it would be 0x10 and below that depending on the generation. > Is there any harm of also having the 'generation' exposed > as well? I like the simplicity of the mapping from that value to > Thunderbolt/USB4 standard version (e.g. I would show that in 'boltctl > list'); 'hw_version' will need a bit more "interpreting". If generation is the only thing you need, we can export that now and forget hw_version :)