Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6912697imu; Thu, 31 Jan 2019 01:38:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN4lzGnVFH3KTZgsMswV8yraN22jSPBMa/V5bOMStwQgd+ACTvU2z1ACxOWBKqfOvNmz1mc9 X-Received: by 2002:a63:4566:: with SMTP id u38mr30592373pgk.4.1548927485702; Thu, 31 Jan 2019 01:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548927485; cv=none; d=google.com; s=arc-20160816; b=e2LtS8deRhDr5dlkkP3mScQHnptA7VtbloHtDDdc0nG4YEp2WMrmO/q5XCaUkHTZZx MS94PAscPBlu6rDwMtPhgOo7qWb3JMtWRPiJ9CHtYlyox5yd+44uK3QOKyXeMA6dhDPE Fc7Yu2LVYz9gImsIy8sQ2t/lUJ1gS/dCPqGK3NzdwMpltRsyRndrNCs6lVWP1XHL/jMI y8ORFvmkDy+898XaZww1VnfnMaB7oU4wFcsCt6saKWvig+AhxFeDqPKqX2YioKltlbpB SvtqPu8V09Lro8jeE9ujgX5DTpBFh2s4ViqljizGQ1DG/zwHmFslFg6j9OY3zs2v252h Oviw== 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=GazGRqdz+sSTzslkV2qUt/d+MwVFDHlIPgOQAheT2jc=; b=X+sao+NNl/4CSwtW4NjItsrAqKClRMmGsMMvLwnUqu4o3VzmVtTw4v4aSKp1J7Lh2m 52XIBwzUAwg/dwv0b0GNMT9YgIiq+xPP+rMKkL8VljxpYO19qyVDGCuS50CwDQwjpUUy ZRhWoZ7TncXyTYoYl0fU7UQlUYmXgWw1lLbpxwQogTzVz2ltnWj2MvBzaWJipASRMZ2C +WSNhINRDhAHLoCNGnu9GPtI/33A56NhSia0d1stEWivMEr064VCSJAjFi7UjBBQLYXJ fDIGh7m8i+GEWktEB6N00AJolf5qW7umeLsRC8SOfqJJKwr6gDVP8WZ950OWxSdoR83n eXcg== 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 l36si4133589plb.433.2019.01.31.01.37.50; Thu, 31 Jan 2019 01:38:05 -0800 (PST) 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 S1731748AbfAaJhd (ORCPT + 99 others); Thu, 31 Jan 2019 04:37:33 -0500 Received: from mga02.intel.com ([134.134.136.20]:8097 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfAaJhc (ORCPT ); Thu, 31 Jan 2019 04:37:32 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 01:37:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,543,1539673200"; d="scan'208";a="130003963" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by FMSMGA003.fm.intel.com with SMTP; 31 Jan 2019 01:37:28 -0800 Received: by lahna (sSMTP sendmail emulation); Thu, 31 Jan 2019 11:37:27 +0200 Date: Thu, 31 Jan 2019 11:37:27 +0200 From: Mika Westerberg To: Lukas Wunner Cc: linux-kernel@vger.kernel.org, Michael Jamet , Yehezkel Bernat , Andreas Noever , "David S . Miller" , Andy Shevchenko , netdev@vger.kernel.org Subject: Re: [PATCH 09/28] thunderbolt: Cache adapter specific capability offset into struct port Message-ID: <20190131093727.GX7875@lahna.fi.intel.com> References: <20190129150143.12681-1-mika.westerberg@linux.intel.com> <20190129150143.12681-10-mika.westerberg@linux.intel.com> <20190131092309.5jfyvo7hgq2ui3ok@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131092309.5jfyvo7hgq2ui3ok@wunner.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 10:23:09AM +0100, Lukas Wunner wrote: > On Tue, Jan 29, 2019 at 06:01:24PM +0300, Mika Westerberg wrote: > > --- a/drivers/thunderbolt/tb.h > > +++ b/drivers/thunderbolt/tb.h > > @@ -124,6 +124,8 @@ struct tb_switch { > > * @remote: Remote port (%NULL if not connected) > > * @xdomain: Remote host (%NULL if not connected) > > * @cap_phy: Offset, zero if not found > > + * @cap_adap: Offset of the adapter specific capability. Negative if not > > + * present. > > Hm, could cap_adap be made zero in the non-presence case for consistency > with cap_phy? Sure.