From: Guenter Roeck Date: Mon, 15 Aug 2016 13:15:35 +0000 (-0700) Subject: UPSTREAM: extcon: Introduce EXTCON_PROP_USB_SS property for SuperSpeed mode X-Git-Tag: firefly_0821_release~1458 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d3b46bb9776272391ba1ce049d0aadbb4d4934be;p=firefly-linux-kernel-4.4.55.git UPSTREAM: extcon: Introduce EXTCON_PROP_USB_SS property for SuperSpeed mode EXTCON_PROP_USB_SS (SuperSpeed)[1] is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables. [1] https://en.wikipedia.org/wiki/USB#Overview Change-Id: Iae845b7e2125291bba0646c7219f485299e7d375 Cc: Chris Zhong Signed-off-by: Guenter Roeck Signed-off-by: Chanwoo Choi Signed-off-by: Huang, Tao (cherry picked from commit 8df0cfe6c6c4a9355989baa8de9f166b2bc51f76) --- diff --git a/include/linux/extcon.h b/include/linux/extcon.h index ad7a1606a7f3..9147c421fb05 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -107,12 +107,18 @@ * @type: integer (intval) * @value: 0 (normal) or 1 (flip) * @default: 0 (normal) + * - EXTCON_PROP_USB_SS (SuperSpeed) + * @type: integer (intval) + * @value: 0 (USB/USB2) or 1 (USB3) + * @default: 0 (USB/USB2) + * */ #define EXTCON_PROP_USB_VBUS 0 #define EXTCON_PROP_USB_TYPEC_POLARITY 1 +#define EXTCON_PROP_USB_SS 2 #define EXTCON_PROP_USB_MIN 0 -#define EXTCON_PROP_USB_MAX 1 +#define EXTCON_PROP_USB_MAX 2 #define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1) /* Properties of EXTCON_TYPE_CHG. */