From patchwork Wed Aug 30 22:39:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Patel, Utkarsh H" X-Patchwork-Id: 718937 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF2C9C83F01 for ; Wed, 30 Aug 2023 22:40:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343953AbjH3WkL (ORCPT ); Wed, 30 Aug 2023 18:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343910AbjH3WkK (ORCPT ); Wed, 30 Aug 2023 18:40:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E78B4; Wed, 30 Aug 2023 15:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693435200; x=1724971200; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Iyz4sar60FjU2iFbaIbTMzum/E5QGedIc3sn/3jPfuU=; b=S9ESJklCxG+y/SbiZCdQHH2A6CQxz+3x/r15qf0togEyZdQKxu3idJ9g ORTlcmch2Yt9FmMPpNiRADiVp6b0IVWzkkmIW5jTZcgg9DlcuPg7fd9Yo vZFWy8ScdT/g2vvlCF7ljW9XMBSO4gMkgiKxeAHRkRVIKsnDp0TK+cpqW e4c/TenaKJdBw9YnqqfuzIrvhg3qlgEjiBhRYvx7i1DhXSI4TJuz9YNsH PytYERjoC69VSZv3lDsCqC/7VeI5V6kSmabm3888pyxAWX3DapI+/rusc xGSvZ0pIKrVwOz0wWnwQub4ZYfNBWYcofk9ygfOu94Wpd/vTTp5BjIeLH w==; X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="374677345" X-IronPort-AV: E=Sophos;i="6.02,214,1688454000"; d="scan'208";a="374677345" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2023 15:39:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="774259649" X-IronPort-AV: E=Sophos;i="6.02,214,1688454000"; d="scan'208";a="774259649" Received: from uhpatel-desk4.jf.intel.com ([10.23.15.97]) by orsmga001.jf.intel.com with ESMTP; 30 Aug 2023 15:39:46 -0700 From: Utkarsh Patel To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, heikki.krogerus@linux.intel.com, pmalani@chromium.org, chrome-platform@lists.linux.dev Cc: andriy.shevchenko@linux.intel.com, bleung@chromium.org, Utkarsh Patel Subject: [PATCH v2 2/5] usb: typec: Add Active or Passive cable defination to cable discover mode VDO Date: Wed, 30 Aug 2023 15:39:47 -0700 Message-Id: <20230830223950.1360865-3-utkarsh.h.patel@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230830223950.1360865-1-utkarsh.h.patel@intel.com> References: <20230830223950.1360865-1-utkarsh.h.patel@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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. Signed-off-by: Utkarsh Patel Reviewed-by: Heikki Krogerus --- 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)