Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: typec: Add Active or Passive cable defination to cable discover mode VDO

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 <heikki.krogerus@linux.intel.com>
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Link: https://lore.kernel.org/r/20230920023243.2494410-3-utkarsh.h.patel@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Utkarsh Patel and committed by
Greg Kroah-Hartman
c365b1e1 a17fae8f

+1
+1
include/linux/usb/typec_tbt.h
··· 46 46 #define TBT_CABLE_OPTICAL BIT(21) 47 47 #define TBT_CABLE_RETIMER BIT(22) 48 48 #define TBT_CABLE_LINK_TRAINING BIT(23) 49 + #define TBT_CABLE_ACTIVE_PASSIVE BIT(25) 49 50 50 51 #define TBT_SET_CABLE_SPEED(_s_) (((_s_) & GENMASK(2, 0)) << 16) 51 52 #define TBT_SET_CABLE_ROUNDED(_g_) (((_g_) & GENMASK(1, 0)) << 19)