Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4173973pxb; Tue, 17 Nov 2020 13:21:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbYLtcRomNgnb0MNc2q3jX2wKsrYt2hrTPx5RmURyfPSCYOQqUhWWn6dBdFpPi6ThjAx9n X-Received: by 2002:a17:906:3187:: with SMTP id 7mr21213637ejy.225.1605648076558; Tue, 17 Nov 2020 13:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605648076; cv=none; d=google.com; s=arc-20160816; b=ZW5LWs66kYfxH+k0CcuqI5GmKgjCyDiiueKyxPyAKrPMstLEMJDX0l+bMZOLV46ksf UT0WcZQRS55J4mKGnM0YDiwiYj9ScWRyGtgNSD5JstVYpIyGBS9+f4zQnHzJEHXrTLto zSvpTL3CkvF77Ro7dFS0e35powahCXJ3EgZw0ozSjYT671Sy+5chQBDEGRSwmPSCG8rb qx8j2IWheMFlTvcC+7jeO1M/YT8/FgfUK8fovQCxTgUANRS1hh36KVquQu6IOjQIKgNr Dm4zByzLiTgBHQDileVEYTjPgVY503m4/VvYuDin4xfiMyxNDSNH73SCmvQatL4uxJiX n9rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kFhpnG7ItKRkl9t+3slguWZUGnqb2EfB7a1pd57utgo=; b=BNcS4txZFfZ1KTbQh8KsaepeQwFIP7YIXLtZSNtmtJfqMeztqgw5ZGdBPhbR0y6Xsh 616TgXNAEAYmi4QSc4ITebEp7ZOfjb5Cd8VTDLesyI3DiK75TP1M3UGByD8VFo7VwZL6 iepwnlIMoBxF/5Yzgaz3doKuM5hd0eTJFzUpKOqTh3WIXYeM3HQlKkRKKgm+Xgs0REoT jhqAjz3PjfGZ/DenFPrXIz3aufhSWJkj18vEMgtrOAyX/CshjGRb7+kgc8Nk6LO5EtSR TerfOzzy45O+NPFmSybfPTHpZTbGyb4AnH+DcuNy8XUBKc086c60BxEqIuWcHHPTPnzn C78w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Cp43UXvc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si13462290eje.469.2020.11.17.13.20.50; Tue, 17 Nov 2020 13:21:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Cp43UXvc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbgKQVQZ (ORCPT + 99 others); Tue, 17 Nov 2020 16:16:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbgKQVQY (ORCPT ); Tue, 17 Nov 2020 16:16:24 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48932C0617A6 for ; Tue, 17 Nov 2020 13:16:23 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id l11so1185823plt.1 for ; Tue, 17 Nov 2020 13:16:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kFhpnG7ItKRkl9t+3slguWZUGnqb2EfB7a1pd57utgo=; b=Cp43UXvcun6VvuWOX3KNkLSSWhmuzhmQrRsjxVYRM8spKBjEc3AnwqDySaMoVRU+Df 0jYuVsXpYctmuK6FQDFfH8zvYFbE0EL14930drGPt5ZJxrayoqeBkF1yKjcYTfMv/0pd 4rne6CNwqoiZAqyVXbtnkQk8/pkgPrK4icXKs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kFhpnG7ItKRkl9t+3slguWZUGnqb2EfB7a1pd57utgo=; b=Y/q041SRPUH7u11c0nAn1CgON5dAey1kv304RhjE8QFLscubpziHNrJKNsE7wOXpMu H8p7WuU4GrNrBmepcnVawwsUucoJ1bDgb9SOgqoXXo7lMT83tWdEeAveNdfPY8FO1exO SivAlI3DRVvh7q9fRi3kFsjhqk+x23KfdVY62jDIkfBV8Ao4KNDfAyUOHwfPS2CBNQW6 rMsuSDhspktiJfQc90BBDWNaDWBI2XBEoz3md/lG9GX0xFqJjbX/cATZ/nfRWjy0+aYB RPPeYUnYLpMVZ/dj6Q3wdtEiktAFdv3nX9FkkAOZxR0oXVh/r7dQ16nJy+u1k1ae9M0H DPGg== X-Gm-Message-State: AOAM5327rJ1cjWyhmNzk+eOL2lFQxa894nlYWSFCoWCCpuXm6tVmdsdV be5+gufDsFdDaGsNNeF3HH/Clw== X-Received: by 2002:a17:902:7b90:b029:d6:ad06:d4c0 with SMTP id w16-20020a1709027b90b02900d6ad06d4c0mr1425725pll.35.1605647781374; Tue, 17 Nov 2020 13:16:21 -0800 (PST) Received: from google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id q12sm22885708pfc.84.2020.11.17.13.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 13:16:20 -0800 (PST) Date: Tue, 17 Nov 2020 13:16:19 -0800 From: Prashant Malani To: Utkarsh Patel Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, heikki.krogerus@linux.intel.com, enric.balletbo@collabora.com, rajmohan.mani@intel.com, azhar.shaikh@intel.com Subject: Re: [PATCH v2 5/8] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message Message-ID: <20201117211619.GD1819103@google.com> References: <20201113202503.6559-1-utkarsh.h.patel@intel.com> <20201113202503.6559-6-utkarsh.h.patel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201113202503.6559-6-utkarsh.h.patel@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Utkarsh, On Fri, Nov 13, 2020 at 12:25:00PM -0800, Utkarsh Patel wrote: > USB4 also uses same cable properties as Thunderbolt 3 so use Thunderbolt 3 > cable discover mode VDO to fill details such as active cable plug link > training and cable rounded support. > > Suggested-by: Heikki Krogerus > Signed-off-by: Utkarsh Patel > > -- > Changes in v2: > - No change. > -- > --- > include/linux/usb/typec.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/usb/typec.h b/include/linux/usb/typec.h > index 6be558045942..d91e09d9d91c 100644 > --- a/include/linux/usb/typec.h > +++ b/include/linux/usb/typec.h > @@ -75,6 +75,7 @@ enum typec_orientation { > /* > * struct enter_usb_data - Enter_USB Message details > * @eudo: Enter_USB Data Object > + * @tbt_cable_vdo: TBT3 Cable Discover Mode Response > * @active_link_training: Active Cable Plug Link Training > * > * @active_link_training is a flag that should be set with uni-directional SBRX > @@ -83,6 +84,7 @@ enum typec_orientation { > */ > struct enter_usb_data { > u32 eudo; > + u32 tbt_cable_vdo; Can we instead just include a field for the rounded cable support property , similar to what was done for active_link_training? That way this gets decoupled from whether a TBT VDO was present in the cable or not > unsigned char active_link_training:1; > }; > > -- > 2.17.1 > Best regards, -Prashant