Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6901580imu; Thu, 31 Jan 2019 01:24:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN5iizHB212WvnMHraQTavWmUVMgCJSs9431FTSqeeEqV8+BHhvlBPHU9D0Y9eWX9xyLql70 X-Received: by 2002:a63:b94c:: with SMTP id v12mr30686228pgo.221.1548926649673; Thu, 31 Jan 2019 01:24:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548926649; cv=none; d=google.com; s=arc-20160816; b=B5atNJQMEaT1pZRINEjr3qbAVsoXAWajh2tsBWmtKuFYOnmH3rc79WNDCOg6l0pyr7 0fORj2kht02TmGV3SwANKT7cdFtLS6m1sb7giIreTHV8mxJ/1zQyUFvspn11TgX8SaQ5 f4QrC9+4t2tEQQKUH4vcRG5+eWN2ZWg5rOQPmWJdHkdAu4PpalMfWkpcT9yzlHudCeu4 +kKBjTNlskR3frt6h+b0DgxpEuqsKMGcpcl7J0A24xUYiPEDagQNt65vDfpEp9J0Fh0v SWwRM4sho6bvvATGTwDQ3NSwLSsBeCZVR8WcyJN4Nm1lofZYDOrvNQKwfRZ0s0ccPIpR t2wA== 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=Ww1WleflGsTu+bdMH0YNvu+BsvjByin0iOEGlvR/oCo=; b=Mvu8leuT65Je2gU7wUkPLc/N15b5CYykPVIi16bAIg1J+s8Vhackfw/jcmjr4SUpv/ JzAjOfXSrCj/Cypnz1AT8gURpXFW0ffDf1OegUFQeGdTjjwRmVwc36W0pmd5Fipp0ChE IBtt6FXf5I4RUHBG0AINljTo4KQasIodV5Z/L9zvA1+Ni99fWt6n5ubOkiLIZm1pk1S2 DBN+awtfbELbMAee70L7bbPEU6F/mnSEQE3BUwLyBtulySDpTNmnPWKQijjJb5TQmzUe o1mwan38FhhdiaqsdWE1GpkLX4TdOqVmoupJYk85rHauJtqf+OLpkcHZBJNa5OqdNhRB nQtA== 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 d34si4214240pla.80.2019.01.31.01.23.53; Thu, 31 Jan 2019 01:24:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729277AbfAaJXL (ORCPT + 99 others); Thu, 31 Jan 2019 04:23:11 -0500 Received: from bmailout1.hostsharing.net ([83.223.95.100]:48837 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfAaJXL (ORCPT ); Thu, 31 Jan 2019 04:23:11 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (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 bmailout1.hostsharing.net (Postfix) with ESMTPS id 62E1230000CDD; Thu, 31 Jan 2019 10:23:09 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 25B5710875; Thu, 31 Jan 2019 10:23:09 +0100 (CET) Date: Thu, 31 Jan 2019 10:23:09 +0100 From: Lukas Wunner To: Mika Westerberg 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: <20190131092309.5jfyvo7hgq2ui3ok@wunner.de> References: <20190129150143.12681-1-mika.westerberg@linux.intel.com> <20190129150143.12681-10-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190129150143.12681-10-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 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? Thanks, Lukas