Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3029880rdb; Tue, 12 Sep 2023 22:39:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcyAJ+XyLPJtwfRFHnUCVLJsAxbSRW1nTFVcK2JyTo7vG0SU0yLuygZ4oYTabfYRk6tlY2 X-Received: by 2002:a05:6a20:8425:b0:148:82d6:aa16 with SMTP id c37-20020a056a20842500b0014882d6aa16mr1674262pzd.25.1694583587964; Tue, 12 Sep 2023 22:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694583587; cv=none; d=google.com; s=arc-20160816; b=zHJq/zT/eGrNE6GaUnUV+NQaQ48K2iloSn9uEIXuTMeS906gDIcLO0auNNGb7weP7v Td5/nW1kqheiLE4NExcuwXVxrfnRJ0Lxf8QebrmdmoosRh7hWME9VhwelWl6tauCAR/M 9gKNUSE046lvdE+Bu3h2GfBwTnICzT3ezpmoDe2DaoM8G7joX2GZeKhNOzNG5o/BQmsl F0xZSb7t0lvQ7RAWu6YxCDm8HwS2KcD5U1riXaq4b+i0FGlFBYWoHlPdjuMIffoBg1Zo 2CuNA32JMUOvj34zVwgDKSqNf/ByHgso+qPRCKFBPnavqidGREyAR6uvB2i15A0YCIfu AOJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/ol6p0XcnWtTmm2RyUk+RcFijCsK+Ea/ljyDkHp+090=; fh=ghnhCzHlHkXQSOMThTQajbsvpwHhFJS4a5Vb99Jn4qI=; b=C1tn3YhUPDIVpcRlQqFVpq+ysy456rp8RDcPf6zdQtvRaaV6C+Ux2GpZ9uowh9Tbm+ 9pFIFZqSZcGWZ++0jCIAN5dCOiZaY5kwZWMzfG0WHEF2JIzj4VADOEJ1TOHwAFP726AV ED0SVEPFenfv04A2x85KQG1UGo+Un6g/Fp9D+DyHTyieRBQJ2JcL4+YMZ72FoOzFM8kv Eh2E915FEwvjav1bMFz2yHg07o++BCgvo8UnA1Ny2RaJs7gSfNMe6i58Of+q8xTb2qrl MRJOwaJq4O+gG5iGUvYcUIa121U5EtrduaxqRAUEk9WPr3WY4CFIA6K43O/T3TLFCZ6/ PLig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QE6jgxwv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id kk4-20020a170903070400b001b8b7460620si9222606plb.181.2023.09.12.22.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 22:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QE6jgxwv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6733882EC554; Mon, 11 Sep 2023 21:36:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbjILDTx (ORCPT + 99 others); Mon, 11 Sep 2023 23:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240495AbjILCla (ORCPT ); Mon, 11 Sep 2023 22:41:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD1DAF7AC7; Mon, 11 Sep 2023 19:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694484409; x=1726020409; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dAdtds6Wye5TOEf5GujwvorJsvSmst09i/Z17fEawCw=; b=QE6jgxwvYb7RhpUxKqHR21Zab+G4OBdm2h8ftz0w+96klgUN3sHGhM1w 6RUobcxCNUNwBDgcb8CBwaEpTVlsD/uUoMW+JbdF6KY4fJfBTzz6jhxMv lYWlWcdvF3U2H8RENw40rCzej+dDoLaF0dTX+Abul3dL0O98tv+UVcG4h raLs15kimyPSse8NrkL0vlu4elEnat4WH5jAF2XICrleZ46KiEZuUAy9q 2gRyOSFn1klvlYcn4mAuCyarU/k72JgQMRrB6k7gz97ulp7of444Wo5LA VIDgAoLfsf4jXHPUt6x+E/0LzriIDM0Y4wKCGgSgFtKdfq3UmgFfeFK9v g==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="382057899" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="382057899" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 17:58:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="858570610" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="858570610" Received: from uhpatel-desk4.jf.intel.com ([10.23.15.200]) by fmsmga002.fm.intel.com with ESMTP; 11 Sep 2023 17:58:10 -0700 From: Utkarsh Patel To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, heikki.krogerus@linux.intel.com, pmalani@chromium.org Cc: chrome-platform@lists.linux.dev, andriy.shevchenko@linux.intel.com, bleung@chromium.org, Utkarsh Patel Subject: [PATCH v3 2/4] usb: typec: Add Active or Passive cable defination to cable discover mode VDO Date: Mon, 11 Sep 2023 17:57:50 -0700 Message-Id: <20230912005752.1532888-3-utkarsh.h.patel@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230912005752.1532888-1-utkarsh.h.patel@intel.com> References: <20230912005752.1532888-1-utkarsh.h.patel@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:36:07 -0700 (PDT) As per USB Type-C Connector specification v2.2 section F.2.6, BIT25 represents Active or Passive cable. Added BIT25 defination to the Thunderbolt 3 cable discover mode VDO. Reviewed-by: Heikki Krogerus Signed-off-by: Utkarsh Patel --- Changes in v3: - Reviewed-by tag from Heikki is added. Changes in v2: - This change is being added as new patch in this series. include/linux/usb/typec_tbt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb/typec_tbt.h b/include/linux/usb/typec_tbt.h index 63dd44b72e0c..c7a2153bd6f5 100644 --- a/include/linux/usb/typec_tbt.h +++ b/include/linux/usb/typec_tbt.h @@ -46,6 +46,7 @@ struct typec_thunderbolt_data { #define TBT_CABLE_OPTICAL BIT(21) #define TBT_CABLE_RETIMER BIT(22) #define TBT_CABLE_LINK_TRAINING BIT(23) +#define TBT_CABLE_ACTIVE_PASSIVE BIT(25) #define TBT_SET_CABLE_SPEED(_s_) (((_s_) & GENMASK(2, 0)) << 16) #define TBT_SET_CABLE_ROUNDED(_g_) (((_g_) & GENMASK(1, 0)) << 19) -- 2.25.1